Expand description
Full citation graph constructor (ALGO-CN-025).
Counterpart of igraph_full_citation() in
references/igraph/src/constructors/full.c:348-376.
A full citation graph is the complete DAG on n vertices in which
every vertex i cites every earlier vertex j < i. Equivalently:
directed = true→ directed acyclic graph withn·(n−1)/2arcs(i, j)for every0 ≤ j < i < n. The induced topological order is0, 1, 2, …, n−1(in-degree of vertexkequalsk, out-degree equalsn − 1 − k).directed = false→ undirectedK_nwithn·(n−1)/2edges. The edge multiset matchesfull_graph(n, false, false), but the emission order is row-major over the destination’s indexj < i(upstream emits(1,0), (2,0), (2,1), (3,0), (3,1), …), so the edge ids assigned byGraph::add_edgesdiffer fromfull_graph’s undirected branch.
Time complexity: O(|V|² ) = O(|E|).
Degenerate inputs:
n == 0→ empty graph (vcount = 0, ecount = 0).n == 1→ singleton, no edges.
Functions§
- full_
citation - Build the full citation graph on
nvertices.