graph.makeEdgeChain( "a,c,g,k" );
graph.makeEdgeChain( "a,b,d,j,k" );
graph.makeEdgeChain( "b,e,f,h,i,j" );
graph.makeEdgeChain( "d,h" );
RelationshipExpander expander = Traversal.expanderForTypes( MyRelTypes.R1, Direction.OUTGOING );
Node a = graph.getNode( "a" );
Node k = graph.getNode( "k" );
assertPaths( GraphAlgoFactory.pathsWithLength( expander, 3 ).findAllPaths( a, k ), "a,c,g,k" );
assertPaths( GraphAlgoFactory.pathsWithLength( expander, 4 ).findAllPaths( a, k ), "a,b,d,j,k" );
assertPaths( GraphAlgoFactory.pathsWithLength( expander, 5 ).findAllPaths( a, k ) );