WorksComputer Science
BiLight: A Fast Method for Estimating Counts of 6-Vertex Bipartite Motifs in Large Graphs
Abstract
Motifs, or small subgraphs, are fundamental building blocks of complex networks. Analyzing their frequency distribution provides deep insights into the local structure of graphs, with applications in social network analysis, bioinformatics, and web mining. However, exact enumeration of motifs becomes computationally expensive as the size of the motif and the network increases. This challenge is particularly acute for bipartite motifs, which are ubiquitous in modeling relationships like user-item, author-paper, and actor-movie interactions. In this work, we present BiLight (Bipartite Lightweight motif estimation), a scalable framework for estimating the frequencies of all 17 non-isomorphic 6-vertex bipartite motifs. Specifically, we focus on estimating the non-induced counts of these motifs, which is a common requirement in many graph mining tasks. Our approach relies on a randomized path sampling of paths on four vertices. We use an efficient, weighted strategy by counting the ways that each sampled path can be extended to one of the 17 motifs. This framework yields unbiased estimates of the global motif counts. We conduct extensive experiments on networks of various sizes. Our experiments demonstrate that BiLight converges rapidly to the ground truth with high accuracy, even on massive networks where exact counting is infeasible. The source code is publicly available at https://github.com/celikmustaa/BiLight.
Introduction
MOTIFS are small subgraphs on networks and counting how often they occur is central to network analysis, with uses in biology, the social sciences and the study of large online networks [1], [2], [3], [4], [5], [6], [7], [8], [9], [10], [11], [12], [13]. Motif frequency in real networks is an important feature in comparison to a random network [1], [4], [14]. The frequency distribution of motifs, often called the motif degree distribution or motif profile, provides a powerful signature of the network’s topology. Motif profile is also used as a graph feature to evaluate the performance of graph models representing networks and classify vertex roles [1], [5], [6], [7], [8], [9], [15], [16], [17]. Understanding the local structure of these networks is crucial for tasks like community detection, link prediction, anomaly detection, and graph similarities for graph classification, which have been widely used for a variety of graph mining and learning tasks.
Milo et al. [4] introduced network motifs as subgraphs that occur in real world networks more frequently when compared to random networks. Network motifs have been significant structures in the study of transcriptional regulation networks [18], the analysis of online social networks [17, 19, 20, 21] and internet traffic classification and anomaly detection [22, 23].
Graphlet (motif as induced subgraphs) counts are useful as significant graph features in graph classification and graph similarity comparison. Two widely used measures are the graphlet kernel [24], which scores a pair of graphs by the inner product of their normalized graphlet-count vectors, and the relative graphlet frequency (RGF) distance [6], which sums the absolute differences of the log-scaled relative frequencies. Such comparisons are needed in computational biology, cheminformatics and software analysis, among other fields. For example, protein function prediction problem asks whether a given protein is an enzyme. The topology of a biological network of a protein is used to determine this characteristic of a protein [25, 26]. Similarly, the networks representing chemical compounds are used for predicting activity or adverse effects of potential drugs [27, 28]. Computing similarities of networks using graph models is also useful in community detection and clustering problems. For example, Yanardag and Vishwanathan [29] compute graph similarity to determine the type of a community in online social networks. Further examples on application of graph similarity comparison arise in malware detection, where subroutines and classes in softwares and relationships are represented with a graph model [30, 31, 32] so that similarities between the topologies of these graphs help to identify the malwares.
Motif analysis is used widely in graph mining problems [33, 34, 35]. In these applications, the computation of the motif counts is an expensive process even for moderate size graphs due to the combinatorial explosion of the problem [36, 37]. Despite the progress on counting 4-vertex motifs [39, 40] and 5-vertex motifs [41, 42], little attention has been given to counting 6-vertex motifs: existing work targets a single pattern, such as the induced 6-cycle [43, 44], or general non-bipartite graphlets [45]. While counting 3-vertex or 4-vertex motifs (like triangles in unipartite graphs or butterflies in bipartite graphs) is well-studied, counting larger motifs (e.g., 6 vertices) presents a significant computational challenge. The number of such subgraphs grows combinatorially with the graph size, making exact enumeration impossible for large-scale networks. Consequently, researchers have turned to sampling-based approximation methods [42, 45]. In this work, we present BiLight (Bipartite Lightweight motif estimation), a scalable framework for estimating the non-induced counts of all 17 non-isomorphic 6-vertex bipartite motifs shown in Figure 1. While these motifs are bipartite, the input graph need not be; BiLight correctly counts these bipartite substructures within any general graph.
Figure 1. The 17 non-isomorphic 6-vertex bipartite motifs (M1–M17).
Our contribution can be summarized as follows:
BiLight’s core contribution is a method to sample paths on four vertices uniformly at random and extend them to estimate 6-vertex bipartite motifs counts. Our method is scalable and computationally efficient.
To validate our method, we conduct extensive experiments to show the accuracy of our method. We provide theoretical analysis to show that our framework finds unbiased estimates of 6-vertex bipartite motif counts. To do that, we bound the errors of the estimated counts finding bounds on the variance of the estimator.
We conduct experiments on real networks with various scales such as Amazon Ratings (Books), Amazon Ratings (Electronics), IMDB, and Flickr. Our experiments demonstrate that BiLight converges rapidly to the ground truth with high accuracy (the ground truth is approximated by high-sample runs), achieving low relative error and high stability even on massive graphs where exact counting is infeasible. Our empirical comparisons show that BiLight outperforms the state-of-the-art method. To allow the experiments to be repeated independently, we release the source code of BiLight, together with the test suite that checks the local counting patterns against a brute-force oracle.
The rest of this paper is organized as follows. In § 2, we provide necessary notation and terminology. § 3 summarizes the related work. The preprocessing step of our framework is described in § 4. § 5 presents our 6-vertex bipartite motif sampling method BiLight. The performance evaluation and testing results are presented in § 6.
Preliminaries
Let be an undirected graph with vertices and edges. For a vertex , let denote its neighbor set and its degree. A graph is bipartite if its vertex set can be partitioned into two disjoint sets and such that every edge connects a vertex in to a vertex in . A motif is a small connected graph used as a pattern. An induced subgraph is a subgraph of such that is exactly the set of edges in that have both its endpoints in . For example, the cycle has three copies of as a subgraph, but none of them are induced as the endvertices of these paths are connected with an edge in . The non-induced count is the number of subgraphs of isomorphic to (additional edges among the chosen vertices are allowed), whereas the induced count is the number of vertex subsets whose induced subgraph is isomorphic to (no additional edges). A motif counted in the induced sense is commonly called a graphlet. A path (cycle, resp.) on vertices is denoted by (, resp.). Table 1 summarizes the notation used throughout the paper.
| Symbol | Description |
| Undirected graph with vertex set and edge set | |
| Number of vertices and edges | |
| Neighbor set of vertex | |
| Degree of vertex , i.e., | |
| Maximum degree in | |
| Arboricity of : the minimum number of forests into which can be partitioned | |
| Path on vertices ( edges) | |
| An -cycle (cycle on vertices) | |
| Non-induced count of in | |
| The -th bipartite 6-vertex motif () | |
| Non-induced count of motif in | |
| Estimated non-induced count of motif in | |
| Number of distinct copies of inside a single instance of motif | |
| Conversion matrices between induced and non-induced counts | |
| Sample budget: the number of sampled | |
| Edge weight of in weighted sampling: | |
| Number of ways a sampled extends to motif in |
Table 1. Notation used throughout the paper.
Related Work
In this section, we review various related works on counting motifs in networks. Subgraph and motif counting is a broad and well-studied area; we refer the reader to Ribeiro et al. [46] for a comprehensive survey.
Exact counting. Triangle counting has received the most attention, exactly [47] as well as by approximation [34, 48]. Gonen and Shavitt [49] give approximation algorithms for the non-induced counts of all 4-vertex motifs, including per-vertex counts, while Marcus and Shavitt [50] count the full set of 4-vertex motifs exactly. More progress and faster algorithms on counting 4-vertex motifs are developed by Ahmed et al. [35, 39] by utilizing the relationships between 3-vertex and 4-vertex motif counts. Pinar et al. [41] compute exact counts of all subgraphs on up to five vertices. Beyond five vertices, exact counting becomes provably hard: Bera et al. [51] show that in bounded-degeneracy graphs (which include most real-world networks) no near-linear-time algorithm can count a pattern containing an induced cycle of length six or more, unless standard fine-grained complexity conjectures fail. This barrier at size six is a central motivation for estimating rather than exactly counting 6-vertex motifs.
Approximating Motif Counts. There have been studies devoted to designing sampling methods for computing motif concentrations [38, 52, 53, 54, 55, 56, 57]. BiLight belongs to a family of sampling-based estimators. Wedge sampling [34, 58, 59] draws random 2-paths and tests for closure to estimate triangle counts and clustering coefficients. Alon et al. [60] propose the method of color-coding that reduces the computation cost by coloring vertices randomly and enumerating only colorful motifs. In [40], path sampling is reported to run hundreds of times faster than color coding on graphs with about a million edges, at comparable accuracy. In [61, 62, 63, 64], sampling method is used to estimate the number of triangles of static and dynamic graphs. Jha et al. [40] generalize this to path sampling, selecting random 3-paths () to estimate the counts of all 4-vertex subgraphs with provable error bounds. Wang et al. [42] design a sampling algorithm to estimate the counts of 5-vertex motifs. For larger patterns, Bressan et al. [45] use color coding to estimate induced counts of 5- to 8-vertex graphlets in general graphs; their tool Motivo [65, 66, 67] speeds this up with succinct data structures and adaptive sampling. BiLight extends the path-sampling paradigm one step further, sampling subgraphs and extending each to estimate all 6-vertex bipartite motifs simultaneously.
Preprocessing
BiLight estimates the non-induced count of each 6-vertex bipartite motif in two phases: preprocessing (Algorithm 1) builds an alias table for uniform sampling, and estimation (Algorithm 2) draws random subgraphs and accumulates local extension counts. The seed structure is a , which is common to 16 of the 17 motifs (all except the star ).
Claim 1. For any path on 4 vertices, the probability that is picked in Algorithm 2 is .
Proof. Let be a path on distinct vertices with central edge and extension vertices , and let
so that . Indeed, the product counts the ordered pairs , and the subtracted term removes the degenerate pairs with : these are exactly the common neighbors of and , and they close a triangle instead of forming a . On a triangle-free host—in particular a bipartite one—this term vanishes and .
To draw uniformly at random among all ’s, we apply the following steps: (i) select a central edge with probability ; (ii) select uniformly at random from and uniformly at random from ; and (iii) if , reject the pair and repeat step (ii). Step (ii) draws each of the ordered pairs with equal probability, so conditioning on acceptance leaves each of the valid pairs equally likely, that is, with probability . These steps yield
Algorithm 1: BiLight: Preprocessing
Input: Graph G = (V, E) with edges
E = {e_1, …, e_m}
Output: Arrays prob[i], alias[i] for i = 1, …, m;
total P_4 count N(P_4)
foreach edge e_i = (u, v) ∈ E do
w_{e_i} ← (d(u) − 1)(d(v) − 1) − |Γ(u) ∩ Γ(v)|
// number of P_4 centered at e_i
N(P_4) ← ∑_{i=1}^m w_{e_i}
for i ← 1 to m do
q_i ← m w_{e_i}/N(P_4) // scaled by m so the mean is 1
Small ← {i : q_i < 1}; Large ← {i : q_i ≥ 1}
while Small and Large are both non-empty do
remove an index s from Small and an index ℓ from Large
prob[s] ← q_s; alias[s] ← ℓ
q_ℓ ← q_ℓ − (1 − q_s) // bin ℓ covers the shortfall of bin s
if q_ℓ < 1 then
move ℓ to Small
else
move ℓ to Large
foreach index i remaining in Small or Large do
prob[i] ← 1
return prob[·], alias[·], N(P_4)
Rejecting the whole pair (rather than redrawing a single endpoint) is what keeps the accepted path uniform. The step also is inexpensive. Write , and , so that and the acceptance probability is . If then gives ; and if then forces , so the draw is always accepted. Hence every edge with is accepted with probability at least , and the expected number of draws is at most two. In practice the step is far cheaper than this bound: across the twelve non-bipartite datasets of Table 3 the rejection fires on at most 3% of draws (com-amazon, the most triangle-dense of the set), and never on a bipartite host, where for every edge.
| Dataset | Vertices | Edges | Count | Runtime () | Source |
| Bipartite | |||||
| Amazon (Electronics) | 4.5M | 7.7M | 25.8B | 12 s | [69, 70, 71] |
| Amazon (Books) | 10.0M | 22.3M | 352.0B | 72 s | [69, 70, 71] |
| IMDB | 1.2M | 3.8M | 4.6B | 2 s | [72] |
| Flickr | 470.3K | 8.5M | 2.6T | 232 s | [73] |
| Additional non-bipartite | |||||
| wordassociation | 10.6K | 63.8K | 79.2M | 1 s | [74, 75, 76] |
| facebook-wall | 44.0K | 182.4K | 126.3M | 1 s | [77, 78] |
| facebook-links | 63.4K | 816.9K | 7.5B | 9 s | [77, 78] |
| com-amazon.ungraph | 334.9K | 925.9K | 81.0M | <1 s | [79] |
| com-dblp.ungraph | 317.1K | 1.0M | 675.6M | 4 s | [79] |
| web-BerkStan | 654.8K | 6.6M | 1.7T | 340 s | [79] |
| as-skitter | 1.7M | 11.1M | 1.4T | 350 s | [79] |
| cit-Patents | 3.8M | 16.5M | 9.1B | 3 s | [79] |
| livejournal | 5.4M | 49.5M | 2.6T | 106 s | [74, 75, 76] |
| hollywood | 1.1M | 56.3M | 60.2T | 3,326 s | [74, 75, 76] |
| soc-orkut | 3.0M | 106.3M | 16.3T | 298 s | [80] |
| orkut-links | 3.1M | 117.2M | 22.2T | 564 s | [81, 82] |
Table 3. Datasets used in experiments. Vertex and edge counts refer to the largest connected component (LCC) where applicable. Count is the number of subgraphs in the graph (sampling space). Runtime () is BiLight’s estimation time at sample budget in seconds, excluding the one-time graph setup; bipartite values are averages over independent runs. The Flickr file is a mixed user–user and user–group graph; we keep only the user–group edges, which makes it bipartite.
It remains to implement the weighted edge draw of step (i) efficiently. A textbook solution stores the prefix sums of the and binary-searches a uniform random value for each draw, costing per sample for a graph with edges. Because BiLight draws up to millions of paths, we instead use Walker’s Alias Method [68], as described in Algorithm 1, which reduces the cost of each draw to . Let be a probability distribution. To draw an edge from we pick and a value , both uniformly at random. If we return the edge , otherwise we return its alias, the edge . A single index draw plus one comparison thus return an edge with the intended probability .
| Motif | |
| M1 | |
| M2 | |
| M3 | |
| M4 | |
| M5 | |
| M6 | |
| M7 | |
| M8 | |
| M9 | |
| M10 | |
| M11 | |
| M13 | |
| M14 | |
| M15 | |
| M16 | |
| M17 |
Sampling Algorithm
In Algorithm 2, denotes the number of ways a sampled can be extended to an occurrence of motif in , and is the number of distinct copies of inside a single instance of . Many of the expressions in Table 2 have two additive components: a path term that is always evaluated, and a cycle term multiplied by , which contributes only when the seed path closes into a . Motif is the six-vertex star ; its count is obtained directly from the degree sequence as , so it is excluded from sampling.
| Motif | |
| M1 | |
| M2 | |
| M3 | |
| M4 | |
| M5 | |
| M6 | |
| M7 | |
| M8 | |
| M9 | |
| M10 | |
| M11 | |
| M13 | |
| M14 | |
| M15 | |
| M16 | |
| M17 |
Table 2. Local counting patterns for a general host (bipartite or non-bipartite): the closed-form expression for for each motif.
We relabel the vertices of the sampled in Algorithm 2 in path order as , with and the endpoints, and compute for each motif . Each can potentially be extended to a 6-vertex motif by adding two more vertices from the neighborhoods of the path vertices. We derive a closed-form expression for each motif; Table 2 lists all of them. These expressions use neighborhood intersections, edge counts between vertex sets, and vertex degrees.
We use the following auxiliary definitions in Table 2. For a vertex , let be the neighbors of that lie off the path, and . We define two filtered intersection sets:
Let the indicator equals 1 when is adjacent to , and 0 otherwise. Similarly, represents the indicator variable for a proposition . We also use the notation . We compute this efficiently by iterating over the smaller set and probing the larger set’s adjacency, stored as a hash set. The same asymmetry-aware strategy applies to all intersection and edge-count computations throughout the local counting: when comparing two sets of different sizes, we always iterate over the smaller one.
Although our motifs are bipartite, neither the sampler nor the counting patterns assume a bipartite host. The edge weight of Algorithm 1 and the rejection step in the proof of Claim 1 already discount the triangles through each central edge, so a uniformly random is drawn on any input graph. The patterns of Table 2 are stated in the same generality: the adjacency indicators and the intersection corrections such as and exclude the same-side adjacencies and triangles that a bipartite host rules out by construction. On a bipartite host every one of these terms is zero, and each expression reduces to its simpler bipartite form.
Algorithm 2: BiLight: Estimation
Input: ; Arrays , for and from Algorithm 1; sample budget
Output: Estimated counts
for ;
for to do
Sample edge with probability
repeat
Pick uniformly at random
Pick uniformly at random
until
// closes a triangle, not a
foreach motif , do
// Table 2 provides
for to , do
return
Lemma 1. For any motif with , the estimator is unbiased, , and
where is the number of ordered pairs of -instances that share a seed. Thus, our estimator yields an -estimator by taking the median of estimators.
Proof. Let denote the set of all subgraphs in , so . The estimator for the non-induced count of motif scales the average local count by the total number of paths:
By Claim 1:
The last equality follows from the fact that every instance of motif in contains exactly distinct copies of , thus yielding .
For the variance, consider a single draw ; as the paths are drawn independently (with replacement), is the average of i.i.d. copies of . Let indicate that the th copy of , , contains the drawn path.
We only consider the pairs that share at least one seed path, since otherwise and . If instances share seed paths, then , so
Using and ignoring the negative contributions, we obtain
and by independence, which is the stated bound. Let . Chebyshev’s inequality then yields
So, we can turn this estimator into an -estimator by taking the median of estimators.
Claim 2. For a graph with maximum degree , arboricity , vertices and edges, the running time and total storage
(including all preprocessing) of BiLight are and , respectively.
Proof. Preprocessing (Algorithm 1) builds the edge weights and the alias table. The weight of each edge requires , so preprocessing costs , the usual bound for enumerating triangles, which is for a graph of arboricity [47]. Our implementation first tests bipartiteness in and skips the intersections on a bipartite host, where they are all empty, reducing this step to . This is a one-time cost, independent of the sample budget . Each sample costs to draw and to score: the patterns of Table 2 reduce to adjacency-list intersections, each with hash sets, and those that sum an intersection over a neighbor set (e.g., M11) need of them. The total time for samples is therefore , linear in the sample budget, whereas exact enumeration over 6-vertex tuples scales with or worse and is prohibitive on large graphs. Figure 7 in Appendix A confirms the linear dependence on empirically.
The storage budget is independent of . The adjacency-list representation of requires space. Our implementation additionally keeps an explicit list of the edges when constructing the edge weight for each edge . The two alias arrays and add words. Between samples, BiLight updates only a fixed set of motif accumulators (one per motif), and the temporary structures used during local counting (e.g., neighbor-set intersections) are in the worst case and are reused across the iterations rather than accumulated.
Remark 1. At small sample budgets, the running time is dominated by the one-time preprocessing.
On IMDB, for instance, setup takes about 10 s while estimation at takes under 30 ms. Figure 7 (Appendix A) plots estimation time alone, which grows linearly in from the smallest budget; its small irregularities reflect that the cost of scoring a sampled varies with the degrees of its vertices, not a deviation from the bound.
Figure 7. BiLight runtime analysis; each of the four panels plots estimation time (one-time setup excluded) against a different quantity. Top row (log scales): runtime vs. largest connected component vertex count (left) and runtime vs. edge count (right). Bottom row: runtime vs. count (left) and runtime vs. sample budget (right). The vertex-count, edge-count, and -count panels use the bipartite datasets only; in the sample-budget panel, solid lines are the bipartite datasets and dashed lines are the four large non-bipartite graphs of Figure 4.
Experimental Evaluation
All experiments (BiLight and Motivo [65], [66], [67]) were run on a single machine: an Intel Core i7-10750H CPU at 2.60 GHz (6 cores), 32 GB RAM, running Windows 11 Enterprise. The BiLight implementation used to produce these results is available as open source code at github.com/celikmustafa/BiLight.
BiLight runs on any undirected graph and estimates the counts of the 17 bipartite 6-vertex motifs as subgraphs of that graph. As listed in Table 3, we use four large bipartite datasets: Amazon Ratings (Books and Electronics), IMDB (actor–movie), and Flickr (user–group) and middle to large-scale nonbipartite graphs. Table 3 lists all datasets; the top block is bipartite, restricted to the largest connected component (LCC).
Induced and non-induced Motifs
Using BiLight, we are able to obtain the counts of non-induced copies of the motifs in Figure 1 on bipartite as well as nonbipartite networks. As observed in [41], one can formalize a linear relationship between induced and non-induced counts of motifs in a network. We generalize this idea for our framework, by letting and denote the vectors with 17 entries, where for each , and denotes the number of induced and non-induced copies of motif , respectively. We provide in Appendix B, the matrix such that on any given bipartite network, where indicates the number of (non-induced) copies of motif appearing in an instance of motif . Reversely, one can obtain given by the relation . For a suitable motif ordering is lower triangular. Using this conversion, we are able to obtain the counts of induced copies of each motif in Figure 1 on bipartite networks, which we use for comparison of our results with state of the art algorithms.
Performance and Comparison with previous work
Since exact counting is infeasible, we define ground truth as BiLight’s estimate at K. For the bipartite datasets, which have five independent runs at each budget, we average the runs’ estimates at both the target and the reference budget before computing the error; for the non-bipartite single-run experiments, the value serves directly as the reference. We measure accuracy using the Average Distance Error: the mean, over the 16 non-trivial motifs (M12 is excluded), of the per-motif relative error . Table 5 reports this error on the non-bipartite datasets at , 5K, and 20K. Nine of the twelve networks converge to within 8% error at , and nine reach 4% or better at ; the two Orkut graphs, the largest in the set by edge count, remain the slowest to converge. On the bipartite datasets, the mean error at is below 10% on all four graphs, with Flickr reaching 0.3%. Repeatability tracks graph density: the run-to-run coefficient of variation of the individual motif estimates at averages 0.01 on Flickr and 0.06 on IMDB, rising to 0.12 on Amazon Books and 0.18 on Amazon Electronics, the sparsest of the four.
| Dataset | K | K | K |
| wordassociation | 0.16 | 0.05 | 0.01 |
| facebook-wall | 0.15 | 0.05 | 0.05 |
| facebook-links | 0.10 | 0.03 | 0.02 |
| com-amazon | 0.06 | 0.03 | 0.01 |
| com-dblp | 0.06 | 0.03 | 0.00 |
| web-BerkStan | 0.10 | 0.08 | 0.02 |
| as-skitter | 0.05 | 0.03 | 0.02 |
| cit-Patents | 0.04 | 0.10 | 0.02 |
| livejournal | 0.07 | 0.05 | 0.03 |
| hollywood | 0.05 | 0.00 | 0.01 |
| soc-orkut | 0.22 | 0.22 | 0.08 |
| orkut-links | 0.11 | 0.12 | 0.06 |
Table 5. Average Distance Error on non-bipartite datasets (lower is better). All entries are proportions (e.g., 0.10 = 10%). Reference is BiLight’s own estimate at K.
Bressan et al. [45] addressed the problem of counting motifs beyond five vertices in general graphs with color coding, and later released Motivo [65, 66, 67], which extends that approach with succinct data structures and adaptive sampling. Motivo estimates the frequencies of induced motifs on 5 to 8 vertices in a single framework, in general (non-bipartite as well as bipartite) graphs.
We ran both methods on the four bipartite datasets (IMDB, Amazon Ratings Books and Electronics, Flickr): BiLight with sample budgets from to , and Motivo [65, 66, 67] with 10K, 100K, 1M, 10M, and (where feasible) 50M color-coding samples.
Table 4 breaks down the per-motif induced counts: BiLight at (averaged over independent runs and converted via ) against Motivo at 50M samples. M12 is omitted because BiLight obtains it analytically rather than by sampling. On IMDB and Flickr, all 16 comparable motifs agree closely, with only two above 10% on IMDB and one on Flickr; on the Amazon datasets, Motivo leaves several motifs effectively unobserved even at 50M samples (M1, M3, M6 and M11 on Books, and additionally M2 and M5 on Electronics; on Electronics it returns 74 for M3, against BiLight’s ), while BiLight reports all of them. Figure 8 (Appendix C) traces the same comparison across budgets: on IMDB and Flickr the darkest BiLight and Motivo bars “meet in the middle,” visually confirming that the two methods converge to the same induced counts as their budgets grow, while on the Amazon datasets the gap persists on the motifs Motivo barely hits.
| Dataset | Method | M1 | M2 | M3 | M4 | M5 | M6 | M7 | M8 | M9 | M10 | M11 | M13 | M14 | M15 | M16 | M17 | Runtime |
| Amazon Elec. | BiLight | 3.62e6 | 1.07e12 | 2.45e8 | 5.36e13 | 3.76e10 | 2.98e9 | 8.70e14 | 3.57e12 | 5.92e14 | 8.42e11 | 1.24e10 | 2.22e17 | 1.21e15 | 5.94e14 | 6.01e16 | 1.04e14 | 4 min |
| Amazon Elec. | Motivo | — | — | — | 2.72e12 | — | — | 3.72e14 | 1.54e12 | 1.55e14 | 2.21e11 | — | 2.17e17 | 1.24e15 | 6.09e14 | 5.35e16 | 9.97e13 | 5 h 3 min |
| Amazon Books | BiLight | 3.52e9 | 1.25e13 | 1.10e11 | 5.45e14 | 1.21e13 | 8.78e11 | 1.96e16 | 7.93e14 | 5.10e15 | 1.36e14 | 1.32e12 | 2.12e19 | 6.72e17 | 8.77e16 | 4.34e17 | 5.23e15 | 23 min |
| Amazon Books | Motivo | — | 1.15e13 | — | 4.66e14 | 1.78e13 | — | 1.96e16 | 9.71e14 | 4.97e15 | 9.17e13 | — | 2.41e19 | 8.40e17 | 1.17e17 | 5.09e17 | 7.12e15 | 12 h 57 min |
| IMDB | BiLight | 1.06e8 | 5.84e9 | 1.13e9 | 1.27e11 | 1.93e10 | 5.44e9 | 1.56e12 | 4.58e11 | 9.68e11 | 2.84e11 | 1.34e10 | 7.60e13 | 1.24e13 | 1.95e13 | 4.14e13 | 9.73e12 | 45 s |
| IMDB | Motivo | 1.16e8 | 5.07e9 | 1.14e9 | 1.13e11 | 1.86e10 | 5.34e9 | 1.51e12 | 4.51e11 | 9.22e11 | 2.79e11 | 1.30e10 | 7.50e13 | 1.22e13 | 1.94e13 | 4.05e13 | 9.67e12 | 16 min |
| Flickr | BiLight | 2.46e13 | 1.55e16 | 5.87e14 | 3.34e17 | 1.22e16 | 2.96e15 | 3.26e18 | 1.85e17 | 1.16e18 | 6.21e16 | 2.32e15 | 7.17e19 | 1.45e18 | 1.66e18 | 1.36e19 | 4.41e17 | 1 h 17 min |
| Flickr | Motivo | 1.98e13 | 1.69e16 | 5.86e14 | 3.47e17 | 1.22e16 | 3.00e15 | 3.30e18 | 1.87e17 | 1.18e18 | 6.26e16 | 2.31e15 | 7.16e19 | 1.46e18 | 1.65e18 | 1.36e19 | 4.40e17 | 5 h 34 min |
Table 4. Motif induced counts on the bipartite datasets: BiLight (K) vs. Motivo (50M color-coding samples). Missing entries indicate that Motivo did not report the motif at that budget.
Figure 8. Per-motif induced counts at increasing sample budgets. Panels (top to bottom): IMDB; Flickr; Amazon Ratings (Books); Amazon Ratings (Electronics). Teal bars = BiLight (light to dark: , 5K, 20K, 100K); orange bars = Motivo (dark to light: 50M, 10M, 1M, 100K color-coding samples). Wall-clock runtimes are shown in parentheses. Missing bars indicate motifs Motivo did not report at that budget. BiLight bars are averaged over five independent runs. The rarest motif, (), is found on Amazon (Elec.) in only one of the five runs at and three of five at , so its bars at those budgets rest on a handful of hits; from on it is found in every run.
Figure 2 aggregates these per-motif differences into a single curve per dataset. For a given budget we convert BiLight’s non-induced estimates to induced counts via and plot the mean, over the 16 sampled motifs, of the relative difference between the estimate at and the estimate at ; each dashed line gives, for one dataset, the mean of at over the motifs Motivo reports. The percentages quoted below are values of this second quantity. The curves fall as increases; on IMDB and Flickr, where Motivo reports all 16 non-trivial motifs, BiLight at agrees with their 50M-sample run to within 4% (3.7% and 2.6%). On the Amazon datasets, their coverage is incomplete even at 50M samples (12/16 for Books, 10/16 for Electronics), and the agreement on the motifs they do report is uneven. On Books the mean difference is about 21%. On Electronics, the sparsest of the four, the two methods agree to within 4% on the abundant tree-like motifs (– and ) but differ by a factor of two or more on the rarer cycle-containing ones (, –), where Motivo’s 50M samples yield few hits; BiLight’s estimates for those motifs stay stable between and . This reflects the difficulty of these sparse bipartite structures for general-purpose color-coding methods.
Figure 2. BiLight’s convergence: the mean relative difference (%) between BiLight’s induced counts at budget and at , averaged over the 16 sampled motifs. Horizontal dashed lines: the mean relative difference between BiLight at and Motivo at 50M samples, averaged over the motifs Motivo reports (where applicable).
Convergence
We analyzed the convergence of BiLight by increasing the sample budget from to . Figure 3 shows the estimated counts of all 16 sampled motifs on the four bipartite datasets: as grows, the curves overlap and the variance shrinks, indicating strong convergence. Figure 4 repeats the experiment on the four largest non-bipartite networks of Table 3 by edge count. The same sampling and local counting patterns apply unchanged, and the estimates stabilize in the same way, confirming that BiLight is not limited to bipartite inputs.

Figure 3. Convergence of motif count estimates on the four bipartite datasets (one subplot per dataset). -axis = motif index (M12 excluded), -axis = estimated count (log scale), line color = sample budget (lighter = smaller ).

Figure 4. Convergence of motif count estimates on the four largest non-bipartite networks; layout as in Figure 3.
Runtime efficiency:
The runtime column of Table 4 summarizes the runtime gap: BiLight at finishes in 45s on IMDB and in at most 1 h 17 min on Flickr, while Motivo [65, 66, 67] at 50M samples ranges from 16 min to nearly 13 h on the same inputs. To our knowledge, BiLight is the first framework that estimates all seventeen 6-vertex bipartite motifs efficiently on large networks.
Trends in motif counts:
Figure 5 and Figure 6 summarize the estimated motif profiles at the largest budgets ( and , respectively). The profiles follow similar trends across datasets (up to scale), suggesting comparable relative motif importance despite the different domains; the non-bipartite networks sit several orders of magnitude higher owing to their larger edge densities and counts. In Figure 6, Hollywood network seems to have a balanced distribution of all motifs, which may be also related to the fact that this network has the highest number of ’s as seen in Table 3. Figure 5 demonstrates that , , and , the four motifs that contain a cycle on six vertices, are consistently among the least frequent across all four datasets. As expected, the counts fall as the motif gains edges. The five tree motifs (–) have the fewest edges and all rank in the upper half on every dataset, with the most frequent throughout; , the only motif with nine edges, is the rarest everywhere.
Figure 5. Estimated motif profiles (non-induced) of the four bipartite datasets at K (one line per dataset).
Figure 6. Estimated motif profiles (non-induced) of the four largest non-bipartite networks at K.
sampling, yielding unbiased and low-variance estimates. Our evaluation on large-scale networks shows that BiLight is accurate and scalable. The empirical comparison with Motivo [65], [66], [67] shows that our framework is substantially faster, and that the two agree closely on the datasets where Motivo’s sampling covers all sixteen motifs. BiLight is tailored to the 17 bipartite 6-vertex motifs and can deliver all estimates quickly and consistently. We provide our source code that can as well be used towards generalizing our framework to non-bipartite motifs.
Conclusion
We presented BiLight, a lightweight framework for estimating 6-vertex bipartite motif frequencies via weighted
Appendix A: Runtime Result
Figure 7 plots BiLight’s estimation time; it grows approximately linearly with the sample budget on both bipartite and non-bipartite graphs.
Appendix B: Conversion Matrices
Tables 6 and 7 give and for the 17 motifs (rows/columns M1–M17; blank cells are zero).
| M1 | M2 | M3 | M4 | M5 | M6 | M7 | M8 | M9 | M10 | M11 | M12 | M13 | M14 | M15 | M16 | M17 | |
| M1 | 1 | ||||||||||||||||
| M2 | 1 | ||||||||||||||||
| M3 | 9 | 1 | |||||||||||||||
| M4 | 8 | 1 | |||||||||||||||
| M5 | 18 | 4 | 1 | ||||||||||||||
| M6 | 18 | 4 | 1 | ||||||||||||||
| M7 | 12 | 3 | 1 | ||||||||||||||
| M8 | 36 | 12 | 4 | 2 | 1 | ||||||||||||
| M9 | 12 | 3 | 1 | ||||||||||||||
| M10 | 36 | 12 | 2 | 4 | 1 | ||||||||||||
| M11 | 6 | 2 | 1 | 1 | |||||||||||||
| M12 | 1 | ||||||||||||||||
| M13 | 8 | 3 | 2 | 1 | |||||||||||||
| M14 | 9 | 4 | 2 | 1 | 1 | 1 | |||||||||||
| M15 | 36 | 16 | 6 | 6 | 2 | 2 | 1 | ||||||||||
| M16 | 24 | 9 | 2 | 4 | 1 | ||||||||||||
| M17 | 36 | 16 | 4 | 8 | 1 | 2 | 6 | 1 |
Table 6. Direct matrix : . Entry is the number of copies of motif contained in motif .
| M1 | M2 | M3 | M4 | M5 | M6 | M7 | M8 | M9 | M10 | M11 | M12 | M13 | M14 | M15 | M16 | M17 | |
| M1 | 1 | ||||||||||||||||
| M2 | 1 | ||||||||||||||||
| M3 | −9 | 1 | |||||||||||||||
| M4 | −8 | 1 | |||||||||||||||
| M5 | 18 | −4 | 1 | ||||||||||||||
| M6 | 18 | −4 | 1 | ||||||||||||||
| M7 | 12 | −3 | 1 | ||||||||||||||
| M8 | −36 | 12 | −4 | −2 | 1 | ||||||||||||
| M9 | 12 | −3 | 1 | ||||||||||||||
| M10 | −36 | 12 | −2 | −4 | 1 | ||||||||||||
| M11 | −6 | 2 | −1 | 1 | |||||||||||||
| M12 | 1 | ||||||||||||||||
| M13 | −8 | 3 | −2 | 1 | |||||||||||||
| M14 | 9 | −4 | 2 | 1 | −1 | 1 | |||||||||||
| M15 | 36 | −16 | 6 | 6 | −2 | −2 | 1 | ||||||||||
| M16 | −24 | 9 | −2 | −4 | 1 | ||||||||||||
| M17 | 36 | −16 | 4 | 8 | −1 | −2 | −6 | 1 |
Table 7. Inverse matrix : . Row , column correspond to motif , .
Appendix C: Per-Motif Comparison
Acknowledgments
The authors used Anthropic’s Claude in preparing this work. The algorithms, the local counting patterns, the theoretical analysis, the conversion matrices, and the experiments are the authors’ own. Claude’s contributions lie mainly in Sections 4 and 5: suggestion of Walker’s alias method in place of an prefix-sum draw, correction of the preprocessing cost to , brute-force verification to check the local counting patterns and assistance with efficient presentation of experimental results. Claude’s contributions to both the text and the code were reviewed and revised by the authors, who take full responsibility for the paper.
References
References
- [1]P. Holland and S. Leinhardt, “A method for detecting structure in sociometric data,” American Journal of Sociology, vol. 76, pp. 492–513, 1970.
- [2]J. Coleman, “Social capital in the creation of human capital,” American Journal of Sociology, vol. 94, pp. S95–S120, 1988.
- [3]A. Portes, “Social capital: Its origins and applications in modern sociology,” Annual Review of Sociology, vol. 24, no. 1, pp. 1–24, 1998.
- [4]R. Milo, S. Shen-Orr, S. Itzkovitz, N. Kashtan, D. Chklovskii, and U. Alon, “Network motifs: Simple building blocks of complex networks,” Science, vol. 298, no. 5594, pp. 824–827, 2002.
- [5]R. Burt, “Structural holes and good ideas,” American Journal of Sociology, vol. 110, no. 2, pp. 349–399, 2004.
- [6]N. Pržulj, D. G. Corneil, and I. Jurisica, “Modeling interactome: Scale-free or geometric?” Bioinformatics, vol. 20, no. 18, pp. 3508–3515, 2004.pubmed.ncbi.nlm.nih.gov/15284103
- [7]G. Fagiolo, “Clustering in complex directed networks,” Physical Review E, vol. 76, p. 026107, 2007.pubmed.ncbi.nlm.nih.gov/17930104
- [8]F. Hormozdiari, P. Berenbrink, N. Pržulj, and S. C. Sahinalp, “Not all scale-free networks are born equal: The role of the seed graph in PPI network evolution,” PLoS Computational Biology, vol. 3, no. 7, p. e118, 2007.pubmed.ncbi.nlm.nih.gov/17616981
- [9]L. Becchetti, P. Boldi, C. Castillo, and A. Gionis, “Efficient semi-streaming algorithms for local triangle counting in massive graphs,” in Proceedings of KDD ’08, 2008, pp. 16–24.DOI
- [10]K. Faust, “A puzzle concerning triads in social networks: Graph constraints and the triad census,” Social Networks, vol. 32, no. 3, pp. 221–233, 2010.DOI
- [11]M. Szell and S. Thurner, “Measuring social dynamics in a massive multiplayer online game,” Social Networks, vol. 32, pp. 313–329, 2010.
- [12]B. Welles, A. Van Devender, and N. Contractor, “Is a friend a friend?: Investigating the structure of friendship networks in virtual worlds,” in Proceedings of CHI-EA ’10, 2010, pp. 4027–4032.DOI
- [13]S. Son, A. Kang, H. Kim, T. Kwon, J. Park, and H. Kim, “Analysis of context dependence in social interaction networks of a massively multiplayer online role-playing game,” PLoS ONE, vol. 7, no. 4, p. e33918, Apr. 2012.DOI
- [14]D. J. Watts and S. H. Strogatz, “Collective dynamics of ‘small-world’ networks,” Nature, vol. 393, no. 6684, pp. 440–442, 1998.
- [15]C. Seshadhri, T. G. Kolda, and A. Pinar, “Community structure and scale-free collections of Erdős-Rényi graphs,” Physical Review E, vol. 85, no. 5, p. 056109, May 2012.pubmed.ncbi.nlm.nih.gov/23004823
- [16]N. Durak, A. Pinar, T. G. Kolda, and C. Seshadhri, “Degree relations of triangles in real-world networks and graph models,” in Proceedings of the 21st ACM International Conference on Information and Knowledge Management (CIKM ’12), 2012, pp. 1712–1716.
- [17]J. Ugander, L. Backstrom, and J. M. Kleinberg, “Subgraph frequencies: Mapping the empirical and extremal geography of large graph collections,” in Proceedings of the World Wide Web Conference (WWW), 2013, pp. 1307–1318.
- [18]S. S. Shen-Orr, R. Milo, S. Mangan, and U. Alon, “Network motifs in the transcriptional regulation network of Escherichia coli,” Nature Genetics, vol. 31, no. 1, pp. 64–68, 2002.
- [19]H. Chun, H. Kwak, Y.-H. Eom, Y.-Y. Ahn, S. Moon, and H. Jeong, “Comparison of online social relations in terms of volume vs. interaction: A case study of Cyworld,” in Proceedings of the 8th ACM SIGCOMM Conference on Internet Measurement, 2008, pp. 57–70.
- [20]J. Kunegis, A. Lommatzsch, and C. Bauckhage, “The Slashdot zoo: Mining a social network with negative edges,” in Proceedings of the 18th International Conference on World Wide Web. ACM, 2009, pp. 741–750.
- [21]J. Zhao, J. C. S. Lui, D. Towsley, X. Guan, and Y. Zhou, “Empirical analysis of the evolution of follower network: A case study on Douban,” in 2011 IEEE Conference on Computer Communications Workshops (INFOCOM WKSHPS), 2011, pp. 924–929.DOI
- [22]Y. Jin, E. Sharafuddin, and Z.-L. Zhang, “Unveiling core network-wide communication patterns through application traffic activity graph decomposition,” in Proceedings of the 11th International Joint Conference on Measurement and Modeling of Computer Systems, 2009, pp. 49–60.
- [23]M. Milofotou, M. Faloutsos, and M. Mitzenmacher, “Exploiting dynamicity in graph-based traffic analysis: Techniques and applications,” in Proceedings of the 5th International Conference on Emerging Networking Experiments and Technologies, 2009, pp. 241–252.
- [24]N. Shervashidze, S. V. N. Vishwanathan, T. Petri, K. Mehlhorn, and K. Borgwardt, “Efficient graphlet kernels for large graph comparison,” in Proceedings of the Twelfth International Conference on Artificial Intelligence and Statistics, ser. Proceedings of Machine Learning Research, vol. 5. PMLR, 2009, pp. 488–495.
- [25]P. D. Dobson and A. J. Doig, “Distinguishing enzyme structures from non-enzymes without alignments,” Journal of Molecular Biology, vol. 330, no. 4, pp. 771–783, 2003.pubmed.ncbi.nlm.nih.gov/12850146
- [26]S. V. N. Vishwanathan, N. N. Schraudolph, R. Kondor, and K. Borgwardt, “Graph kernels,” Journal of Machine Learning Research, vol. 11, pp. 1201–1242, 2010.
- [27]N. Wale and G. Karypis, “Comparison of descriptor spaces for chemical compound retrieval and classification,” in 2006 IEEE International Conference on Data Mining, 2006, pp. 678–689.DOI
- [28]P. Yanardag and S. V. N. Vishwanathan, “A structural smoothing framework for robust graph comparison,” in Advances in Neural Information Processing Systems 28 (NIPS 2015), 2015.
- [29]—, “Deep graph kernels,” in Proceedings of the 21st ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. ACM, 2015, pp. 1365–1374.DOI
- [30]K. Chen, P. Wang, Y. Lee, X. Wang, N. Zhang, H. Huang, W. Zou, and P. Liu, “Finding unknown malice in 10 seconds: Mass vetting for new threats at the Google-Play scale,” in 24th USENIX Security Symposium (USENIX Security 15). USENIX Association, 2015, pp. 659–674.
- [31]T. Shen, Y. Zhongyang, Z. Xin, B. Mao, and H. Huang, “Detect Android malware variants using component based topology graph,” in 2014 IEEE 13th International Conference on Trust, Security and Privacy in Computing and Communications, 2014, pp. 406–413.DOI
- [32]H. Gascon, F. Yamaguchi, D. Arp, and K. Rieck, “Structural detection of Android malware using embedded call graphs,” in Proceedings of the 2013 ACM Workshop on Artificial Intelligence and Security, 2013, pp. 45–54.DOI
- [33]A. E. Sarıyüce and A. Pinar, “Peeling bipartite networks for dense subgraph discovery,” in Proceedings of the 11th ACM International Conference on Web Search and Data Mining, 2018, pp. 504–512.
- [34]C. Sheshadhri, A. Pinar, and T. G. Kolda, “Triadic measures on graphs: The power of wedge sampling,” in Proceedings of the SIAM International Conference on Data Mining. SIAM, 2013, pp. 10–18.
- [35]N. K. Ahmed, J. Neville, R. A. Rossi, N. G. Duffield, and T. L. Willke, “Graphlet decomposition: Framework, algorithms, and applications,” Knowledge and Information Systems, vol. 50, no. 3, pp. 689–722, 2017.arxiv.org/abs/1506.04322
- [36]N. Betzler, R. van Bevern, M. R. Fellows, C. Komusiewicz, and R. Niedermeier, “Parameterized algorithms for finding connected motifs in biological networks,” IEEE/ACM Transactions on Computational Biology and Bioinformatics, vol. 8, no. 5, pp. 1296–1308, 2011.DOI
- [37]E. Wong, B. Baur, S. Quader, and C.-H. Huang, “Biological network motif detection: Principles and practice,” Briefings in Bioinformatics, vol. 13, no. 2, pp. 202–215, 2012.DOI
- [38]M. Rahman, M. A. Bhuiyan, and M. Al Hasan, “GRAFT: An efficient graphlet counting method for large graph analysis,” IEEE Transactions on Knowledge and Data Engineering, vol. 26, no. 10, pp. 2466–2478, 2014.DOI
- [39]N. K. Ahmed, J. Neville, R. A. Rossi, and N. Duffield, “Efficient graphlet counting for large networks,” in Proceedings of the 15th IEEE International Conference on Data Mining (ICDM), 2015, pp. 1–10.DOI
- [40]M. Jha, C. Seshadhri, and A. Pinar, “Path sampling: A fast and provable method for estimating 4-vertex subgraph counts,” in Proceedings of the 24th International Conference on World Wide Web, 2015, pp. 495–505.
- [41]A. Acharya, C. Seshadhri, and V. Vishal, “ESCAPE: Efficiently counting all 5-vertex subgraphs,” in Proceedings of the 26th International Conference on World Wide Web (WWW’17). ACM, 2017, pp. 1431–1440.
- [42]P. Wang, J. Zhao, X. Zhang, Z. Li, J. Cheng, J. C. Lui, D. TowSley, J. Tao, and X. Guan, “MOSS-5: A fast method of approximating counts of 5-node graphlets in large graphs,” IEEE Transactions on Knowledge and Data Engineering, vol. 30, no. 1, pp. 73–86, 2018.DOI
- [43]J. Niu, J. Zola, and A. E. Sariyuce, “Counting induced 6-cycles in bipartite graphs,” in Proceedings of the 51st International Conference on Parallel Processing, 2022, pp. 1–10.DOI
- [44]J. Niu, J. Zola, and A. E. Sariyuce, “Fast counting and utilizing induced 6-cycles in bipartite networks,” IEEE Transactions on Knowledge and Data Engineering, 2025.DOI
- [45]M. Bressan, F. Chierichetti, R. Kumar, S. Leucci, and A. Panconesi, “Motif counting beyond five nodes,” ACM Transactions on Knowledge Discovery from Data, vol. 12, no. 4, pp. 48:1–48:25, 2018.
- [46]P. Ribeiro, P. Paredes, M. E. P. Silva, D. Aparicio, and F. Silva, “A survey on subgraph counting: Concepts, algorithms, and applications to network motifs and graphlets,” ACM Computing Surveys, vol. 54, no. 2, pp. 28:1–28:36, 2021.DOI
- [47]N. Chiba and T. Nishizeki, “Arboricity and subgraph listing algorithms,” SIAM Journal on Computing, vol. 14, no. 1, pp. 210–223, 1985.DOI
- [48]C. Tsourakakis, M. N. Kolountzakis, and G. Miller, “Triangle sparsifiers,” Journal of Graph Algorithms and Applications, vol. 15, pp. 703–726, 2011.DOI
- [49]M. Gonen and Y. Shavitt, “Approximating the number of network motifs,” Internet Mathematics, vol. 6, no. 3, pp. 349–372, 2009.
- [50]D. Marcus and Y. Shavitt, “Efficient counting of network motifs,” in ICDCS Workshops. IEEE Computer Society, 2010, pp. 92–98.DOI
- [51]S. K. Bera, L. Gishboliner, Y. Levanzov, C. Seshadhri, and A. Shapira, “Counting subgraphs in degenerate graphs,” Journal of the ACM, vol. 69, no. 3, pp. 23:1–23:21, 2022.arxiv.org/abs/2010.05998
- [52]M. A. Bhuiyan, M. Rahman, M. Rahman, and M. Al Hasan, “GUISE: Uniform sampling of graphlets for large graph analysis,” in Proceedings of the 12th IEEE International Conference on Data Mining (ICDM), 2012, pp. 91–100.
- [53]P. Wang, J. C. S. Lui, B. Ribeiro, D. Towsley, J. Zhao, and X. Guan, “Efficiently estimating motif statistics of large networks,” ACM Transactions on Knowledge Discovery from Data, vol. 9, no. 2, pp. 8:1–8:27, 2014.arxiv.org/abs/1306.5288
- [54]N. Kashtan, S. Itzkovitz, R. Milo, and U. Alon, “Efficient sampling algorithm for estimating subgraph concentrations and detecting network motifs,” Bioinformatics, vol. 20, no. 11, pp. 1746–1758, 2004.pubmed.ncbi.nlm.nih.gov/15001476
- [55]S. Wernicke, “Efficient detection of network motifs,” IEEE/ACM Transactions on Computational Biology and Bioinformatics, vol. 3, no. 4, pp. 347–359, 2006.pubmed.ncbi.nlm.nih.gov/17085844
- [56]S. Omidi, F. Schreiber, and A. Masoudi-Nejad, “MODA: An efficient algorithm for network motif discovery in biological networks,” Genes & Genetic Systems, vol. 84, no. 5, pp. 385–395, 2009.pubmed.ncbi.nlm.nih.gov/20154426
- [57]X. Chen, Y. Li, P. Wang, and J. C. S. Lui, “A general framework for estimating graphlet statistics via random walk,” Proceedings of the VLDB Endowment, vol. 10, no. 3, pp. 253–264, 2016.arxiv.org/abs/1603.07504
- [58]T. Schank and D. Wagner, “Approximating clustering coefficient and transitivity,” Journal of Graph Algorithms and Applications, vol. 9, pp. 265–275, 2005.DOI
- [59]T. G. Kolda, A. Pinar, T. Plantenga, C. Seshadhri, and C. Task, “Counting triangles in massive graphs with MapReduce,” SIAM Journal on Scientific Computing, vol. 36, no. 5, pp. S48–S77, 2014.DOI
- [60]N. Alon, R. Yuster, and U. Zwick, “Color-coding: A new method for finding simple paths, cycles and other small subgraphs within large graphs,” in Proceedings of the 26th Annual ACM Symposium on Theory of Computing (STOC), 1994, pp. 326–335.DOI
- [61]C. E. Tsourakakis, U. Kang, G. L. Miller, and C. Faloutsos, “DOULION: Counting triangles in massive graphs with a coin,” in Proceedings of the 15th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2009, pp. 837–846.
- [62]A. Pavan, K. Tangwongsan, S. Tirthapura, and K. Wu, “Counting and sampling triangles from a graph stream,” Proceedings of the VLDB Endowment, vol. 6, no. 14, pp. 1870–1881, 2013.DOI
- [63]M. Jha, C. Seshadhri, and A. Pinar, “A space efficient streaming algorithm for triangle counting using the birthday paradox,” in Proceedings of the 19th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. ACM, 2013, pp. 589–597.arxiv.org/abs/1212.2264
- [64]N. K. Ahmed, D. F. Gleich, J. Neville, and R. Kompella, “Graph sample and hold: A framework for big-graph analytics,” in Proceedings of the 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. ACM, 2014, pp. 1446–1455.
- [65]M. Bressan, S. Leucci, and A. Panconesi, “Motivo: Fast motif counting via succinct color coding and adaptive sampling,” arXiv:1906.01599, 2019.arxiv.org/abs/1906.01599
- [66]——, “Motivo: Fast motif counting via succinct color coding and adaptive sampling,” Proceedings of the VLDB Endowment, vol. 12, no. 11, pp. 1651–1663, 2019.arxiv.org/abs/1906.01599
- [67]——, “Faster motif counting via succinct color coding and adaptive sampling,” ACM Transactions on Knowledge Discovery from Data, vol. 15, no. 6, pp. 96:1–96:27, 2021.DOI
- [68]A. J. Walker, “An efficient method for generating discrete random variables with general distributions,” ACM Transactions on Mathematical Software, vol. 3, no. 3, pp. 253–256, 1977.DOI
- [69]UCSD, “Amazon product reviews and metadata,” 2023. [Online]. Available: https://cseweb.ucsd.edu/~jmcauley/datasets.html#amazon_reviews
- [70]J. McAuley, C. Targett, Q. Shi, and A. van den Hengel, “Image-based recommendations on styles and substitutes,” in Proceedings of the 38th International ACM SIGIR Conference on Research and Development in Information Retrieval, 2015, pp. 43–52.
- [71]R. He and J. McAuley, “Ups and downs: Modeling the visual evolution of fashion trends with one-class collaborative filtering,” in Proceedings of the 25th International Conference on World Wide Web, 2016, pp. 507–517.DOI
- [72]“IMDB bipartite network,” 2006, Network Repository. [Online]. Available: https://networkrepository.com/IMDB.php
- [73]“Flickr user–group network,” Network Repository. [Online]. Available: https://networkrepository.com/flickr.php
- [74]“LAW: Large-scale network data,” LAW, Università degli Studi di Milano. [Online]. Available: http://law.di.unimi.it/
- [75]P. Boldi and S. Vigna, “The WebGraph framework I: Compression techniques,” in Proceedings of the 13th International Conference on World Wide Web (WWW), 2004, pp. 595–602.
- [76]P. Boldi, M. Rosa, M. Santini, and S. Vigna, “Layered label propagation: A multiresolution coordinate-ordering for compressing social networks,” in Proceedings of the 20th International Conference on World Wide Web (WWW), 2011, pp. 587–596.
- [77]“Social networks data (WOSN, Facebook, etc.),” MPI-SWS. [Online]. Available: http://socialnetworks.mpi-sws.org/data-wosn2009.html
- [78]B. Viswanath, A. Mislove, M. Cha, and K. P. Gummadi, “On the evolution of user interaction in Facebook,” in Proceedings of the 2nd ACM Workshop on Online Social Networks (WOSN), 2009, pp. 37–42.DOI
- [79]J. Leskovec and A. Krevl, “SNAP Datasets: Stanford large network dataset collection,” Jun. 2014. [Online]. Available: https://snap.stanford.edu/data
- [80]A. L. Rossi and N. K. Ahmed, “The network data repository with interactive graph analytics and visualization,” in Proceedings of the Twenty-Ninth AAAI Conference on Artificial Intelligence, 2015, pp. 4292–4293. [Online]. Available: https://networkrepository.comDOI
- [81]“Orkut links (IMC 2007),” MPI-SWS. [Online]. Available: https://socialnetworks.mpi-sws.org/data-imc2007.html
- [82]A. Mislove, M. Marcon, K. P. Gummadi, P. Druschel, and B. Bhattacharjee, “Measurement and analysis of online social networks,” in Proceedings of the 7th ACM SIGCOMM Conference on Internet Measurement, 2007, pp. 29–42.DOI





