// for getting the sublist of vertex labels of cycle paricipants
//
// So in our case we are seraching for [b, a, c, d, b]
final String label = ( String ) cycleStack.getFirst();
final int pos = cycleStack.lastIndexOf( label );
final List cycle = cycleStack.subList( 0, pos + 1 );
Collections.reverse( cycle );