Need to figure out how to best do subgraph isomorphism check