Counting subgraphs in locally dense graphs | Synapse