}
private List findSequences()
{
List sequences = new ArrayList();
ConnectedSubgraphFinder csFinder = new ConnectedSubgraphFinder(graph);
List subgraphs = csFinder.getConnectedSubgraphs();
for (Iterator i = subgraphs.iterator(); i.hasNext(); ) {
Subgraph subgraph = (Subgraph) i.next();
if (hasSequence(subgraph)) {
List seq = findSequence(subgraph);
sequences.add(seq);