using bfs breadth first search return the path from a any arbitrary node to any other . concode_field_sep Set<Node> _nodes concode_elem_sep Set<Edge> _edges concode_field_sep void setNodes concode_elem_sep void addNode concode_elem_sep Set<Node> getNodes concode_elem_sep void insertNode concode_elem_sep void insertNode concode_elem_sep Path breadthFirst concode_elem_sep Node getNodeByName concode_elem_sep Set<Edge> findEdges concode_elem_sep void removeEdge concode_elem_sep void removeEdge concode_elem_sep Set<Edge> findEdgesFrom concode_elem_sep Set<Edge> getEdges concode_elem_sep void addEdge concode_elem_sep void addEdge concode_elem_sep void addEdge concode_elem_sep void removeNode concode_elem_sep void setEdges
Path function ( Node arg0 , Node arg1 ) { if ( arg0 == arg1 ) { return new Path ( ) ; } Path loc0 = breadthFirst ( arg0 , arg1 , new CopyOnWriteArrayList < Path > ( ) , new HashSet < Edge > ( ) ) ; return loc0 ; }