Commits

Micha Kops committed 792019e

Typo in node traversal example fixed

Comments (0)

Files changed (1)

src/main/java/com/hascode/tutorial/FilteredNodeTraversalExample.java

 			System.out
 					.println("traversing nodes for Peter's public 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: "