- 3
- 0
- 约4.89千字
- 约 30页
- 2019-01-26 发布于福建
- 举报
no1图数据库如课程引论部分
* * * * * * * * * * * * * * An Example of Neo4j Neo4j /content/The_Matrix * Finding friends of “Thomas Anderson” and? the friends of the friends too Neo4j APIAn Example private?void?printFriends( Node person ) { ????Traverser traverser = person.traverse( ????????Order.BREADTH_FIRST, //Traverse图的模式 ????????StopEvaluator.END_OF_GRAPH, // Traverse图的停止条件 ????????ReturnableEvaluator.ALL_BUT_START_NODE, // 哪些图节点被返回 ????????MyRelationshipTypes.KNOWS, //按照那些边来进行Traverse ????????Direction.OUTGOING ); // Traverse的方向 ????for?( Node friend?: traverser ) ????{ ????????System.out.println( friend.getPrope
原创力文档

文档评论(0)