Examples of NodeDraft


Examples of org.gephi.io.importer.api.NodeDraft

        }
        return tokens.toArray(new String[]{});
    }

    private void addNode(String[] nodeData) {
        NodeDraft node;
        String id = nodeData[0];
        if (!container.nodeExists(id)) {
            node = container.factory().newNodeDraft(id);
            container.addNode(node);
        } else {
            node = container.getNode(id);
        }
        for (int i = 1; i < nodeDataColumns.length; i++) {
            node.parseAndSetValue(nodeDataColumns[i].getId(), nodeData[i]);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.