Pattern match: find chains matching a sequence of node types connected by edges.
E.g., ["source", "processor", "sink"] finds all matching chains.
Returns list of chains, each chain being a list of node_ids.
Find chains of nodes matching a type sequence (e.g., ["source", "processor", "sink"]).