use of org.gephi.io.importer.api.NodeDraft in project gephi by gephi.
the class ImporterDOT method getOrCreateNode.
protected NodeDraft getOrCreateNode(String id) {
if (!container.nodeExists(id)) {
NodeDraft nodeDraft = container.factory().newNodeDraft(id);
container.addNode(nodeDraft);
return nodeDraft;
}
return container.getNode(id);
}
Aggregations