1. Micha Kops
  2. neo4j-tutorial

Commits

Micha Kops  committed 792019e

Typo in node traversal example fixed

  • Participants
  • Parent commits 069de09
  • Branches default

Comments (0)

Files changed (1)

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

View file
 			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: "