Demo entry 6361177

java

   

Submitted by anonymous on May 03, 2017 at 13:44
Language: Java. Code size: 507 Bytes.

private void subgraphTraversal(String s) {
		// TODO Auto-generated method stub
		try(Transaction tx=graphDb.beginTx()){
			startDriver=getDriverNode(s);
			Driver[n]=startDriver;
			String output="Start Node: "+startDriver.getProperty("residentID")+" "+startDriver.getProperty("name")+"\n";
			Traverser subgraph=subgraphDescription(startDriver);
			/*for(Path path:subgraph){
				output+="At depth "+path.length()+" => "+path.endNode().getLabels()+" "+path.endNode().getId()+"\n";
			}*/
		}
	}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).