Subgraph frequencies example