Graph Motif Parameters
- Graph motif parameters are graph-theoretic measures defined by counts of constant-size induced subgraphs, providing a clear local structure description.
- They establish a linear-algebraic framework interrelating induced, subgraph, and homomorphism counts, enabling efficient algorithmic reductions and complexity analyses.
- Applications span colored motif variants, statistical network models, higher-order clustering, and learning-based embeddings, highlighting their broad utility in graph analysis.
Graph motif parameters are graph-theoretic quantities defined from small subgraph structure. In the counting-complexity sense introduced in “Homomorphisms Are a Good Basis for Counting Small Subgraphs” (Curticapean et al., 2017), a graph motif parameter is any graph parameter that depends only on the frequencies of constant-size induced subgraphs: for some fixed , there is a finitely supported coefficient vector supported on graphs with such that
Equivalent finite representations exist in the subgraph-count basis and in the homomorphism-count basis. In adjacent literatures, the same phrase is used more broadly for motif frequency, size, topology, scarcity, color multiplicities, and other local subgraph descriptors in motif mining, Graph Motif, higher-order clustering, and graph generation (Oliver et al., 2022).
1. Formal definition and linear structure
For graphs , the standard counting primitives are
and , the number of induced subgraphs of 0 isomorphic to 1 (Curticapean et al., 2017). If 2 denotes the partition lattice on 3 and 4, then 5 is the quotient graph obtained by identifying the vertices in each block of 6, discarding loops when targeting simple graphs (Curticapean et al., 2017).
A graph motif parameter is therefore a finite-support linear functional on induced-subgraph counts. For fixed 7, the feature vector may be taken as all 8 over unlabeled graphs 9 of size at most 0, and the dimension equals the number of isomorphism types on at most 1 vertices (Curticapean et al., 2017). The same vector space admits multiple canonical bases: induced-subgraph counts, subgraph counts, and homomorphism counts are all interchangeable finite bases.
This linear-algebraic viewpoint is encoded by the infinite matrix 2 with entries 3, indexed by unlabeled graphs and ordered by total size 4. That matrix is upper triangular with diagonal entries 5, so finite-support rows span an infinite-dimensional vector space of graph motif parameters (Curticapean et al., 2017). This formulation makes motif parameters comparable to other graph statistics built from local pattern frequencies, including graphon homomorphism densities 6 in graph limit theory (Curticapean et al., 2017).
2. Homomorphisms as a basis
The central structural result is that homomorphism counts form a particularly effective basis. Between subgraph counts and induced-subgraph counts, one has
7
where 8 counts extensions of 9 to 0 on the same vertex set, equivalently 1 (Curticapean et al., 2017). Möbius inversion on the edge-subset lattice yields
2
so induced and non-induced subgraph counts are basis-equivalent.
Between homomorphisms and subgraphs, one has the surjective factorization
3
where 4 counts surjective homomorphisms 5 (Curticapean et al., 2017). The inverse transformation is given by Möbius inversion on the partition lattice:
6
Equivalently, injective homomorphisms satisfy
7
with
8
Hence
9
The support of this hom-basis expansion is the “spasm” of 0,
1
namely the loop-free homomorphic images obtained by merging non-adjacent vertices of 2 (Curticapean et al., 2017). The inverse matrix 3 is nonzero exactly on 4. This support controls both algorithm design and hardness.
The basis theorem can be stated in finite-dimensional form. For any finite set 5 of graphs closed under surjective homomorphisms, the principal submatrix 6 is invertible and
7
Thus homomorphism rows with finite support are linearly independent and form a basis (Curticapean et al., 2017). In later work on expressivity, this support description is also what determines the Weisfeiler–Leman dimension of subgraph-counting parameters: for a labeled pattern 8, 9-dimension of 0 is 1, whereas 2 has 3-dimension 4 (Lanzinger et al., 2023).
3. Algorithms and complexity dichotomies
The algorithmic consequence of the hom-basis expansion is that counting copies of a fixed pattern can be reduced to counting homomorphisms from the graphs in its spasm. For fixed 5 with 6 and treewidth 7, 8 can be computed deterministically in time
9
and if 0, then in time 1, where 2 is the matrix-multiplication exponent (Curticapean et al., 2017).
For subgraph counting, if
3
then the expansion
4
gives an algorithm for 5 in time
6
Using the Scott–Sorkin bound that every 7-edge graph has treewidth at most 8, one obtains
9
which improves previously known exponents such as 0 for 1-edge matchings and 2 for 3-cycles (Curticapean et al., 2017).
The same paper proves a general parameterized dichotomy for evaluating finite linear combinations of homomorphism counts. Given input 4 with
5
and parameter 6, let
7
If 8 is bounded, evaluation runs in time
9
Otherwise the problem is 0-hard, and under 1 no algorithm runs in time
2
The extraction lemma behind the lower bound uses categorical products and the identity
3
which makes a linear combination at least as hard as its hardest summand (Curticapean et al., 2017).
A related approximation landscape appears in parameterized counting of connected induced subgraphs and Graph Motif. Exactly counting connected induced 4-vertex subgraphs is 5-complete, but there is an FPTRAS whenever the monotone property 6 has edge-minimal witnesses of bounded treewidth; counting Graph Motif inherits this approximation scheme because connectedness has trees as minimal witnesses (Jerrum et al., 2013).
4. Colored, decision, and local clustering variants
A distinct but closely related tradition studies colored motifs. In the vertex-colored extension of graph motif parameters, one counts color-preserving copies of a colored pattern 7 in a colored graph 8, with inclusion–exclusion restricted to color-respecting partitions. The resulting complexity classification is a trichotomy: polynomial-time solvable, fixed-parameter tractable, or 9-hard, depending on the treewidth of the colored hom-basis support and on additional structural obstructions such as large half-colorful matchings (Curticapean et al., 2017).
The classical Graph Motif problem is a decision problem on a vertex-colored graph 0 with color function 1 and a multiset motif 2: one asks whether there exists 3 such that 4 is connected and the multiset of colors on 5 equals 6 (Rizzi et al., 2012). In the standard parameterization by 7, Graph Motif is FPT, with a randomized 8 algorithm and an improved algebraic formulation via constrained multilinear detection giving a randomized 9 algorithm for Graph Motif and 00 for Min-Substitute (Rizzi et al., 2012). Parameterizations by the number of distinct colors 01, substitution budget 02, or structural graph parameters yield a detailed landscape: Graph Motif is W[1]-hard by 03 even on trees, polynomial on trees in time 04 when 05 is small, and FPT or para-NP-hard depending on parameters such as distance to clique, vertex cover number, edge clique cover, cluster editing number, or max leaf number (Rizzi et al., 2012).
Structural parameterizations make the dependence on graph topology explicit. Graph Motif can be solved in time 06 when parameterized by distance to clique, in time 07 when parameterized by the size of a minimum vertex cover, and in time 08 via neighborhood diversity when parameterized by cluster editing number (Bonnet et al., 2015). By contrast, it remains NP-hard on trees of maximum degree 09, at distance 10 to cluster, at distance 11 to disjoint paths, and even on graphs of bandwidth 12 (Bonnet et al., 2015).
The dual parameter 13 induces another set of motif parameters. Under this parameter, Colorful Graph Motif on general graphs has no 14 algorithm under SETH, List-Colored Graph Motif is W[1]-hard even for lists of size at most two, Graph Motif on trees is solvable in 15 time, and Colorful Graph Motif on trees admits an 16 algorithm and a kernel of size at most 17 vertices (Fertin et al., 2019).
Motif parameters also underlie higher-order local clustering. For a motif template 18, one defines motif degree
19
motif volume
20
hypergraph motif cut
21
and projected-graph adjacency
22
For triangles, the projected-graph cut equals the number of cut triangles, so motif conductance
23
is especially interpretable (Chhabra et al., 2022). In the global clustering setting, motif conductance is also the basis of PSMC, whose vertex-level parameter
24
supports a peeling algorithm with motif-independent approximation guarantee
25
for any motif (Lin et al., 2024).
5. Statistical and probabilistic motif parameters
In statistical network analysis, motif parameters often mean expected counts, significance scores, or model coefficients attached to motifs. For exchangeable graph generative models with latent variable 26 and conditional edge probabilities 27, the central identity is
28
where 29 is the weighted graph with adjacency 30 (Schulte, 2023). Hence
31
For graphons 32, this yields exact finite-33 formulas
34
and unordered counts are obtained by dividing by 35 (Schulte, 2023).
Exponential random graph models encode motif parameters directly as sufficient statistics. With
36
triangle closure in undirected PPI networks is modeled by an alternating triangle statistic, and feed-forward loops in directed regulatory networks by an alternating transitive-triangle statistic (Stivala et al., 2020). In the reported models, the triangle and transitive-triangle parameters are significantly positive in yeast and human PPI networks and in E. coli and yeast regulatory networks, while under-representation of cyclic triangles can be explained by other topological terms without adding an explicit cyclic-triangle parameter (Stivala et al., 2020).
Temporal graph generation uses another motif parameterization. In the Motif Transition Model, motif states are temporal motifs 37, transitions are 38, and the governing parameters are transition probabilities
39
stopping probabilities 40, exponential transition rates
41
and calibration quantities such as the cold-event degree sequence 42, cold-event timestamps 43, and the edge-creation calibration 44 (Liu et al., 2023). These motif parameters determine both the structural evolution and the inter-event timing of generated temporal networks.
Random graph models built from motifs reveal another parameter layer. In the binomial random motif graph 45, thresholds for connectivity, perfect matching, and Hamiltonicity are controlled by
46
the minimum degree 47, and the motif-dependent subgraph appearance parameter 48 (Anastos et al., 2019). For example,
49
and the same threshold governs perfect matchings, while Hamiltonicity depends on the correction term 50 (Anastos et al., 2019).
Spatial random graphs exhibit motif parameters tied to geometry. In random geometric graphs on the 51-dimensional unit torus with 52 nodes and connection radius 53, symmetric motifs are subsets of nodes with identical adjacencies. Their occurrence depends on 54, 55, 56, the minimum inter-point distance 57, and the excluded-neighborhood volume 58 (Dettmann et al., 2017). In the thermodynamic limit at fixed mean degree, the probability that the closest pair is Type-I symmetric tends to 59 in all dimensions studied; in the intensive limit, the probability tends to 60 in 61, to a nontrivial constant in 62, and to 63 in 64 (Dettmann et al., 2017).
6. Learning-based motif parameters
Machine-learning treatments usually parameterize motifs by continuous embeddings rather than by exact isomorphism classes. In “Approximate Network Motif Mining Via Graph Learning” (Oliver et al., 2022), motifs are defined as connected subgraphs that are statistically over-represented relative to a null model, but occurrences may be approximate under a similarity function 65. The core motif parameters are motif number
66
motif size
67
motif topology, and scarcity, operationalized by the embedding-space density contrast
68
The method formulates motif mining as node labeling and evaluates recovery by soft M-Jaccard over predicted and planted motif memberships (Oliver et al., 2022).
A different learned parameterization appears in MICRO-Graph, where motifs are continuous centroids
69
in embedding space (Zhang et al., 2020). Node-to-motif responsibilities are
70
balanced through a Sinkhorn step, while subgraph-to-motif responsibilities use analogous softmax assignments on pooled subgraph embeddings. The combined motif objective
71
learns motif centroids, node assignments, and connected subgraph partitions, which then guide graph-to-subgraph contrastive learning (Zhang et al., 2020).
Motif prediction in dynamic link formation uses still another parameterization. For a specified motif 72, the relevant parameters are the motif edges 73, deal-breaker edges 74, and correlation-aware edge weights 75 (Besta et al., 2021). Independent-edge heuristics use products of edge scores, while correlated heuristics use convex combinations and negative terms for deal-breakers. The SEAM architecture augments local enclosing subgraphs with motif-aware inner and outer labels and predicts motif appearance probabilities with a GNN, consistently outperforming link-based baselines in AUC on 76-stars, 77-cliques, and dense clusters (Besta et al., 2021).
These learning-based definitions change the semantics of “graph motif parameters.” The object is no longer only a fixed linear functional on induced-subgraph counts; it may instead be a learned prototype set, a density-contrast score, or a collection of soft assignment variables. A plausible implication is that the algebraic basis view and the learned embedding view describe complementary regimes: one prioritizes exact combinatorial semantics, the other approximate structural recurrence.
7. Expressivity, counting interpretation, and broader generalizations
The expressive power of motif parameters has been characterized in several orthogonal directions. For labeled graph motif parameters
78
the 79-dimension equals
80
and whenever this value is at most 81, there exists a local readout function on stable 82-WL colors such that
83
Thus exact motif counts can be recovered uniformly from local information in the last layer of a corresponding higher-order GNN whenever 84-WL distinguishes them (Lanzinger et al., 2023).
A different question is which motif parameters genuinely “count something.” For pure graph motif parameters
85
where the 86 have no isolated vertices, evaluation belongs to the oracle counting class 87 if and only if all coefficients 88 are nonnegative integers (Bläser et al., 16 Jul 2025). Nonnegativity of the function on all input graphs is not sufficient: the paper gives pure examples with a negative coefficient that remain nonnegative on every graph but have no combinatorial interpretation in the oracle-#P sense (Bläser et al., 16 Jul 2025). This result extends to relational structures, including colored graphs, and further to categorical motif parameters defined from subobject counts in categories such as finite vector spaces and parameter sets.
The categorical generalization clarifies why linear combinations are natural. In settings with finite coproducts and an appropriate factorization system, polynomials in subobject counts linearize into nonnegative integer combinations of subobject-count functions (Bläser et al., 16 Jul 2025). This abstraction places graph motif parameters alongside subspace counts in finite vector spaces and related Ramsey-theoretic counting theories.
Taken together, these results give graph motif parameters a dual status. They are, first, concrete local-structure coordinates for graphs, admitting exact basis changes among induced counts, subgraph counts, and homomorphism counts (Curticapean et al., 2017). They are, second, computational and statistical objects whose tractability, expressivity, and even interpretability are governed by treewidth, support closure under homomorphic images, sign patterns of coefficients, color structure, and the probabilistic model under which motifs are observed (Curticapean et al., 2017).