I'm using this java snippet to traverse all the nodes in DFS order and print out the node IDs.
Code: Select all
Traverser dfs = node.traverse(Order.DEPTH_FIRST, StopEvaluator.END_OF_GRAPH,
ReturnableEvaluator.ALL,
MyRelationshipTypes.D, Direction.BOTH);
for( Node n : dfs ) {
System.out.print( n.getId() );
printNodeProperties( n );
}
When I look at the Gephi DataLaboratory I see node IDs 2 to 223 as my graph. Gephi seems to map the reference node ID 0 (Neo4j) to ID 1 (Gephi). Can I prevent this? Why does Gephi do this?