1. Micha Kops
  2. neo4j-tutorial

Commits

Micha Kops  committed b542fc1

Missing connections for the Gloucester node added.

  • Participants
  • Parent commits fea609a
  • Branches default

Comments (0)

Files changed (1)

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

View file
 					RelTypes.LEADS_TO);
 			r8.setProperty("distance", 77);
 
+			// northampton -> gloucester ~113mi
+			Relationship r9 = northamptonNode.createRelationshipTo(
+					gloucesterNode, RelTypes.LEADS_TO);
+			r9.setProperty("distance", 113);
+
+			// gloucester -> bristol ~35mi
+			Relationship r10 = gloucesterNode.createRelationshipTo(bristolNode,
+					RelTypes.LEADS_TO);
+			r10.setProperty("distance", 35);
+
 			tx.success();
 
 			System.out