有没有区别
方法一:
TraversalDescription one = new TraversalDescriptionImpl();
one = one.breadthFirst()
.relationships(RelType.KNOWS, Direction.OUTGOING)
.evaluator(Evaluators.excludeStartPosition());
Traverser t1 = one.traverse(node);
方法二:
TraversalDescription two = Traversal.description()
.breadthFirst()
.relationships(RelType.KNOWS, Direction.OUTGOING)
.evaluator(Evaluators.excludeStartPosition());
Traverser t2 = one.traverse(node);
两个遍历器似乎都提供了相同的结果。是否有一种方法优于另一种方法?什么时候,为什么?