All Downloads are FREE. Search and download functionalities are using the official Maven repository.

prerna.ds.export.graph.IGraphExporter Maven / Gradle / Ivy

The newest version!
package prerna.ds.export.graph;

import java.awt.Color;
import java.util.Map;

public interface IGraphExporter {

	/**
	 * Boolean if there are more edges to return
	 * @return
	 */
	boolean hasNextEdge();
	
	Map getNextEdge();
	
	/**
	 * Boolean if there are more vertices to return
	 * @return
	 */
	boolean hasNextVert();
	
	Map getNextVert();
	
	/**
	 * Return the count of each vert type
	 * @return
	 */
	Map getVertCounts();
	
	/**
	 * Get a string representation of the node color
	 * @param c
	 * @return
	 */
	static String getRgb(Color c) {
		return c.getRed() + "," + c.getGreen() + "," +c.getBlue();
	}

	Object getData();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy