
prerna.ds.export.graph.AbstractGraphExporter Maven / Gradle / Ivy
The newest version!
package prerna.ds.export.graph;
import java.util.Hashtable;
import java.util.Map;
public abstract class AbstractGraphExporter implements IGraphExporter {
// store the count of each node type
protected Map vertCounts = new Hashtable();
protected void addVertCount(String type) {
if(vertCounts.containsKey(type)) {
vertCounts.put(type, vertCounts.get(type) + 1);
} else {
vertCounts.put(type,1);
}
}
public Map getVertCounts() {
return this.vertCounts;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy