Commits

Micha Kops committed 069de09

Typo in node traversal example fixed

  • Participants
  • Parent commits ff2e3c3

Comments (0)

Files changed (1)

File src/main/java/com/hascode/tutorial/NodeTraversalExample.java

 
 			System.out.println("traversing nodes for Peter's acquaintances..");
 			Traverser acquaintanceTraverser = getAcquaintances(peterNode);
-			for (Node acquaintanceNode : acquaintanceTraverser.getAllNodes()) {
+			for (Node acquaintanceNode : acquaintanceTraverser) {
 				System.out.println("Peter knows "
 						+ acquaintanceNode.getProperty("name") + " (id: "
 						+ acquaintanceNode.getProperty("id") + ") at depth: "