subgraph enumeration