Complexity Summary#
This page summarizes the asymptotic complexity classes used in API docstrings. For what they mean in practice, with measured run times, see the guide Scaling up to large networks.
Notation: n = number of nodes, m = number of edges, n_a = agents, n_f = artifacts, e_b = bipartite edges, I = iterations, T = trials; for temporal networks, S = snapshots, B = bins.
Statistical#
Function |
Time |
Space |
Notes |
|---|---|---|---|
|
|
|
Alias for disparity_filter. |
|
|
|
n=V, m=E. |
|
|
|
I=max_iter, n=V, m=E. |
|
|
|
Alias for lans_filter. |
|
|
|
Worst-case over node-local sorted edge-weight lookups. |
|
|
|
n=V, m=E. |
|
|
|
Alias for marginal_likelihood_filter. |
|
|
|
Dominated by sorting each node’s link weights (or lans_filter). |
|
|
|
n=V, m=E. |
Structural#
Function |
Time |
Space |
Notes |
|---|---|---|---|
|
|
|
I=max_iter for Sinkhorn-Knopp normalization; the connectivity stage sorts the edges once. |
|
|
|
Dominated by weighted Brandes edge-betweenness. |
|
|
|
|
|
|
|
n=V, m=E. |
|
|
|
Dominated by edge-betweenness on residual graph. |
|
|
|
Runs a shortest-path tree from each root. |
|
|
|
|
|
|
|
All-pairs weighted shortest paths. |
|
|
|
Practical/heuristic bound due to repeated Louvain runs. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Worst-case across per-node strongest-edge selection. |
|
|
|
MST plus per-edge minimax path checks. |
Proximity#
Function |
Time |
Space |
Notes |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Computes all-pairs shortest paths before edge annotation. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Dense adjacency matrix multiplication. |
|
|
|
Worst-case over per-edge neighbor-set intersections. |
|
|
|
|
|
|
|
Hybrid#
Function |
Time |
Space |
Notes |
|---|---|---|---|
|
|
|
Dominated by weighted edge-betweenness centrality. |
Bipartite#
Function |
Time |
Space |
Notes |
|---|---|---|---|
|
|
|
|
|
|
|
Worst-case over {sdsm, fdsm, fixedfill, fixedrow, fixedcol}. |
|
|
|
Worst-case over {sparsify, lspar, local_degree}. |
|
|
|
Worst-case over {disparity, mlf, lans, global_threshold}. |
|
|
|
|
|
|
|
Worst-case over supported projection methods. |
|
|
|
r=rows, c=cols, S=n_swaps. |
|
|
|
T=trials for Monte Carlo fixed-degree randomization. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Includes projection-weight annotation. |
|
|
|
n_a=agents, n_f=artifacts, e_b=bipartite edges. |
|
|
|
I=max_iter for stationary-flow convergence. |
Unweighted#
Function |
Time |
Space |
Notes |
|---|---|---|---|
|
|
|
Wrapper over sparsify with degree scoring. |
|
|
|
Wrapper over sparsify with Jaccard scoring. |
|
|
|
Worst-case; depends on escore/filter choices. |
Filters#
Function |
Time |
Space |
Notes |
|---|---|---|---|
|
|
|
|
|
|
|
k=number of input backbones, m=edges per backbone. |
|
|
|
Edge mode; node mode is O(n log n). |
|
|
|
m counts input edge instances for multigraphs. |
|
|
|
Measures#
Function |
Time |
Space |
Notes |
|---|---|---|---|
|
|
|
b=backbones, q=measures, C=cost per measure evaluation. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Visualization#
Function |
Time |
Space |
Notes |
|---|---|---|---|
|
|
|
Spring layout adds iterative graph-drawing overhead. |
|
|
|
|
|
|
|
Convert#
Function |
Time |
Space |
Notes |
|---|---|---|---|
|
|
|
Sparse input; a dense n x n array is O(n^2). |
Temporal#
Function |
Time |
Space |
Notes |
|---|---|---|---|
|
|
|
|
|
|
|
n_S, m_S nodes and edges summed over snapshots. |
|
|
|
m_B span-bin overlaps (m with freq=None). |
|
|
|
m observations (snapshot edges, events or spans), S snapshots. |
|
|
|
T steps, m distinct edges; plus binning for events and spans. |
|
|
|
T steps, m distinct edges; plus binning for events and spans. |
|
|
|
T steps, m distinct edges; plus binning for events and spans. |
|
|
|
T steps, m distinct edges; plus binning for events and spans. |
|
|
|
T steps, m distinct edges, I EM iterations (at most max_iter); plus binning for events and spans. The method runs only with observe=”keep” or “pvalue”. |
|
|
|
T steps, m distinct edges, P distinct missingness patterns, I likelihood evaluations when q is estimated; with missing_as_zero the method also tests the O(n^2) absent pairs of each snapshot. |
|
|
|
|
|
|
|
r rows. |
|
|
|
B bins. |
|
|
|
m_B span-bin overlaps. |
|
|
|
|
|
|
|
n_S, m_S nodes and edges summed over snapshots. |
|
|
|
m multigraph edges, S snapshots. |
|
|
|
Snapshots are first converted to events. |