Topological generalizations of network motifs. Phys Rev E 70:031909