ep.add( e.createRelationshipTo( d, MyRelTypes.R1 ) );
dp.add( d.createRelationshipTo( a, MyRelTypes.R1 ) );
cp.add( c.createRelationshipTo( b, MyRelTypes.R1 ) );
bp.add( b.createRelationshipTo( a, MyRelTypes.R1 ) );
// Count
PathCounter counter = new Util.PathCounter( predecessors );
assertTrue( counter.getNumberOfPathsToNode( a ) == 1 );
assertTrue( counter.getNumberOfPathsToNode( b ) == 1 );
assertTrue( counter.getNumberOfPathsToNode( c ) == 1 );
assertTrue( counter.getNumberOfPathsToNode( d ) == 1 );
assertTrue( counter.getNumberOfPathsToNode( e ) == 2 );
assertTrue( counter.getNumberOfPathsToNode( f ) == 3 );
// Reverse
counter = new Util.PathCounter( Util.reversedPredecessors( predecessors ));
assertTrue( counter.getNumberOfPathsToNode( a ) == 3 );
assertTrue( counter.getNumberOfPathsToNode( b ) == 2 );
assertTrue( counter.getNumberOfPathsToNode( c ) == 1 );
assertTrue( counter.getNumberOfPathsToNode( d ) == 1 );
assertTrue( counter.getNumberOfPathsToNode( e ) == 1 );
assertTrue( counter.getNumberOfPathsToNode( f ) == 1 );
}