Buggy but subgraph-searching version...