Email zadetek: Beyond clustering: mean-field dynamics on networks with arbitrary subgraph composition