2-regular Digraphs of the Lovelock Lagrangian
Richard J. Mathar

TL;DR
This paper catalogs all 2-regular directed graphs on up to 9 nodes, which correspond to terms in the Lovelock Lagrangian involving contractions of Riemann tensors, including various graph types.
Contribution
It provides a comprehensive enumeration of 2-regular digraphs relevant to the Lovelock Lagrangian, including disconnected, multiarc, and loop graphs, for the first time.
Findings
Tabulated arc lists for n=0 to 9 nodes
Includes graphs with loops and multiarcs
Links graphs to Lovelock Lagrangian terms
Abstract
The manuscripts tabulates arc lists of the 1, 1, 3, 8, 25, 85, 397 ... unlabeled 2-regular digraphs on n=0, 1, 2, ..., 9 nodes, including disconnected graphs, graphs with multiarcs and/or graphs with loops. Each of these graphs represents one term of the Lagrangian of Lovelock's type -- a contraction of a product of n Riemann tensors -- once the 2 covariant and 2 contravariant indices of a tensor are associated with the in-edges and out-edges of a node.
| 3 | 4 | 5 | 6 | 7 | ||||
|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 1 | ||||||
| 2 | 2 | 1 | 3 | |||||
| 3 | 14 | 6 | 1 | 21 | ||||
| 4 | 201 | 68 | 12 | 1 | 282 | |||
| 5 | 4704 | 1285 | 200 | 20 | 1 | 6210 | ||
| 6 | 160890 | 36214 | 4815 | 460 | 30 | 1 | 202410 | |
| 7 | 7538040 | 1422288 | 160594 | 13755 | 910 | 42 | 1 | 9135630 |
| 2 | 1 | 2 | 2 |
|---|---|---|---|
| 3 | 1 | 6 | 12 |
| 4 | 3 | 72 | 132 |
| 5 | 12 | 1440 | 2400 |
| 6 | 61 | 43200 | 66060 |
| 7 | 365 | 1806840 | 2572920 |
| 4 | 0 | 0 | 0 |
|---|---|---|---|
| 5 | 1 | 30 | 210 |
| 6 | 4 | 1260 | 5220 |
| 7 | 21 | 60480 | 180810 |
| 3 | 4 | 5 | 6 | 7 | 8 | 9 | ||||
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 1 | ||||||||
| 2 | 2 | 1 | 3 | |||||||
| 3 | 5 | 2 | 1 | 8 | ||||||
| 4 | 14 | 8 | 2 | 1 | 25 | |||||
| 5 | 50 | 24 | 8 | 2 | 1 | 85 | ||||
| 6 | 265 | 93 | 28 | 8 | 2 | 1 | 397 | |||
| 7 | 1601 | 435 | 108 | 28 | 8 | 2 | 1 | 2183 | ||
| 8 | 11984 | 2486 | 507 | 113 | 28 | 8 | 2 | 1 | 15129 | |
| 9 | 101884 | 17211 | 2811 | 527 | 113 | 28 | 8 | 2 | 1 | 122585 |
| 3 | 4 | 5 | 6 | ||||
|---|---|---|---|---|---|---|---|
| 1 | 1 | 1 | |||||
| 2 | 3 | 3 | 3 | ||||
| 3 | 8 | 13 | 13 | 8 | |||
| 4 | 25 | 58 | 88 | 58 | 25 | ||
| 5 | 85 | 310 | 588 | 588 | 310 | 85 | |
| 6 | 397 | 1909 | 4626 | 6035 | 4626 | 1909 | 397 |
| 7 | 2183 | 13843 | 40417 | 66471 | 66471 | 40417 | 13843 |
| 8 | 15129 | 114821 | 395324 | 782257 | 975715 | 782257 | 395324 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTensor decomposition and applications · Advanced Mathematical Theories and Applications · Matrix Theory and Algorithms
2-regular Digraphs of the Lovelock Lagrangian
Richard J. Mathar http://www.mpia-hd.mpg.de/~mathar Max-Planck Institute of Astronomy, Königstuhl 17, 69117 Heidelberg, Germany
Abstract
The manuscripts tabulates arc lists of the 1, 1, 3, 8, 25, 85, 397 …unlabeled 2-regular digraphs on nodes, including disconnected graphs, graphs with multiarcs and/or graphs with loops. Each of these graphs represents one term of the Lagrangian of Lovelock’s type — a contraction of a product of Riemann tensors — once the 2 covariant and 2 contravariant indices of a tensor are associated with the in-edges and out-edges of a node.
digraphs, regular graphs, Lovelock Lagrangian
pacs:
02.10.Ox, 04.20.Fy, 11.10.Ef
I Regular Digraphs
I.1 Nomenclature
In the common language of graph theory, digraphs (directed graphs) are graphs where the edges (called arcs) are oriented, i.e., the two nodes of an arc are distinguished to be tail and head of the arc. The indegree of a node is the number of arcs that have heads at a node; the outdegree is the number of arcs that have tails at a node. -regular digraphs are digraphs where the indegree and outdegree at each node is the same Brinkmann (2013); Ramanath and Walsh (1987). Loops are arcs where head and tail are the same node. (Each loop increases the indegree and outdegree of the node by one.) Multiarcs are multisets of two or more arcs that share a head and tail node.
The underlying simple graph of a digraph is obtained by reducing the arcs to undirected edges, replacing multiedges by single edges, and removing loops. We will be only interested in these simple graphs to classify the digraphs by the number of components of their underlying simple graphs. (That means according to weak connectivity).
(Vertex) labeled graphs have distinct labels at their nodes, usually taken to be the positive integers while handling graphs on computers, or letters from a onwards. We define the Adjacency Matrix of a digraph of nodes labeled as the square matrix which contains in row and column the number of arcs which start at node and end at node . Construction of the labeled -regular digraphs admitting multiarcs and loops is therefore equivalent to constructing the matrices with non-negative integer entries where all row sums and all column sums are . These are registered in Table A008300 in the Online Encyclopedia of Integer Sequences for the cases where multiarcs are not admitted, and in Table A257493 if multiarcs are admitted Foundation Inc. (2023).
Denote the number of unlabeled and labeled -regular digraphs with nodes and components by and .
The unlabeled graphs with components can be derived from the connected graphs quickly by the Multiset Transformation, collecting arrangements over all partitions of into parts (Flajolet and Sedgewick, 2009, Theor. I.1)(Harary and Palmer, 1973, (4.2.3)):
[TABLE]
The number of unlabeled and labeled -regular digraphs with nodes is
[TABLE]
The case of the unlabeled 1-regular digraphs is simple: the connected 1-regular digraphs are cycles (unicycles), including the case with 1 node and its loop:
[TABLE]
So the number of unlabeled, not necessarily connected, 1-regular digraphs on nodes, , is the number of partitions of (Foundation Inc., 2023, A000041), and the are the partition numbers (Foundation Inc., 2023, A008284).
I.2 Symmetries
The key part of this work is to identify the Automorphism Group of the labeled 2-regular digraphs, which is the group of permutations of the labels which keeps the Adjacency Matrix of a graph the same. This bundles a set of one or more labeled digraphs which are mapped onto each other by the permutations of the group, and each such set is represented by a single unlabeled 2-regular digraph. This is one way of erasing/forgetting any particular order on the nodes while maintaining the connectivity and structure of the graph.
The unlabeled 2-regular digraphs might also be obtained by starting from the cubic QED vacuum polarization diagrams de Mello Koch and Ramgoolam (2012); Mathar (2019), coalescing each edge that represents an undirected photon line and its two incident nodes into a single node such that only the directed fermion lines connect to the remaining nodes—representing nodes of a theory—, plus a cleanup that eliminates duplicates. Another approach is to construct first the 4-regular undirected unlabeled graphs de Mello Koch and Ramgoolam (2012)(Foundation Inc., 2023, A129429), and to add directions later.
We shall keep track of the Automorphism Group of each graph by writing down the Cycle Index of the group of the node permutations (Harary and Palmer, 1973, §2). Since is a subgroup of the group of all permutations of , its order, , is a divisor of . The denominator of the cycle index polynomial is , so we can recover the number of labeled digraphs by dividing through the denominator of the Cycle Index (Harary and Palmer, 1973, (1.1.3)). For nodes, for example, unlabeled 2-regular digraphs exist with 4 different Cycle Indices:
- •
1 graph with cycle index ,
- •
3 graphs with cycle index ,
- •
2 graphs with cycle index ,
- •
and 2 graphs with cycle index ,
and is the number of labeled graphs on 3 nodes (Foundation Inc., 2023, A000681). As we are admitting loops, there is always at least one graph on nodes (the one consisting of isolated nodes with two loops each) that has the maximum symmetry here, .
The labeled graphs with components are deduced from the weakly connected labeled graphs by a Bell transformation, summing over all compositions of into positive parts weighted by multinomial coefficients (Bower, , EIJ):
[TABLE]
If
[TABLE]
denotes the exponential generating function of the weakly connected labeled graphs, the bivariate exponential generating function of the labeled graphs is Gilbert (1956)
[TABLE]
The corresponding derivation starting from demonstrates that are the Stirling Numbers of the Second Kind (Foundation Inc., 2023, A008277) and the Bell Numbers (Foundation Inc., 2023, A000110).
For , the number of labeled digraphs refined by the number of weakly connected components is summarized in Table 1.
II Gallery of Unlabeled 2-regular Digraphs
The unlabeled 2-regular digraphs on nodes are illustrated in the following sections. Each digraph has arcs. For easier visual recognition, the graphs with more than one component are surrounded by a frame. These visualize throw schemes for 2-armed jugglers.
II.1 1 graph on 1 node
II.2 3 graphs (2 connected) on 2 nodes
II.3 8 graphs (5 connected) on 3 nodes
II.4 25 graphs (14 connected) on 4 nodes
II.5 85 graphs (50 connected) on 5 nodes
III Bijection with Lovelock Terms
Bogdanos has pointed at a graphical representation of the terms of Lovelock’s Lagrange density Lovelock (1971, 1972); Bogdanos (2009): A graph of a particular term which is a product of Riemann Tensors is constructed as follows: (i) Start with a bottom row of nodes plus a top row of another nodes, where nodes are associated left-to-right with a left-to-right reading of the -factors of the product. (ii) Add an edge from the -th bottom node to the -th top node if a covariant lower index of factor number appears as a contravariant index of factor number . This assignment works because the two contravariant indices are permutations of the covariant indices. Since the Riemann Tensor is (skew)-symmetric in the first and in the last two indices, the representation does not need to track the two edges at each node to distinguish a “first” from a “second.” Bogdanos’ representation is a labeled, undirected 2-regular graph on nodes.
Our graphical representation transforms these bipartite graphs once more Cooper (1993):
- •
Bogdanos’ edges are turned into directed edges (arcs), always heading from a node of the bottom row to a node on the top row.
- •
Each pair of nodes associated with the same -factor is collapsed into a single node, keeping all arcs fastened to their nodes. Loops appear if the -factors were already contracted (Ricci tensors).
- •
Labels are erased, meaning that the left-to-right reading orders of the product of the are all equivalent reflecting the usual commutative law for multiplications. The multiplicity may be recovered by examining the Automorphism Group of the new graph
This transformation of Bogdanos’ bipartite graphs on nodes to our 2-regular digraphs on nodes is lossless (reversible).
IV Line Graphs
Each digraph has an associated line digraph which is defined as follows Harary and Norman (1960); Sysło (1982): Each arc in the digraph is rendered as one node in the line digraph. An arc from node in the line digraph (corresponding to an arc from node to node in the digraph) to node in the line digraph (corresponding to an arc from node to node in the digraph) exists if the nodes and are the same, which means, if the two arcs in the graph are adjacent to each other and have aligned directions.
Loops in the digraph create loops in the line digraph. A -regular digraph on nodes preduces a -regular line digraph on nodes.
V Single Edge Cuts
If a single arc of the 2-regular digraphs discussed above is cut, a pair of two additional nodes appears at that place: one with indegree 1 and outdegree 0, another with indegree 0 and outdegree 1; the other nodes keep their degrees. The equivalent action in the tensor product is to leave one pair of indices uncontracted; the equivalent action in a -theory is to move from the vacuum diagrams to the diagrams of Green’s functions. In a preparational step one might have enumerated the marked line graphs where the marked nodes in the line graphs would indicate which lines are cut in their base graphs.
The notation will be used for the number the unlabeled digraphs with components with nodes with indegree and outdegree plus 2 nodes with the mixed in-outdegrees of (0,1) and (1,0) created by the cut. (Adopting the nomenclature of Chae et al. Chae et al. (2007), these “almost” regular graphs will be called fairly regular graphs.) The enumeration for any number of components is . Only the connected graphs (where ) are relevant because the graphs with more than one component can be constructed by taking one connected graph and adding any number of graphs of the -regular class. So the ordinary generating function of the fairly regular digraphs is the product of the ordinary generating function of by the ordinary generating function of , and the equivalent statement holds for the exponential generating function of the labeled graphs.
The full set of these 1-in 1-out graphs up to 6 nodes obtained by cutting an arc follows. The cases without multiarcs up to 7 nodes I have already shown in a manuscript in (Foundation Inc., 2023, A005642).
V.1 1 connected graph on 2 nodes
V.2 1 connected graph on 3 nodes
V.3 3 connected graphs on 4 nodes
V.4 12 connected graphs on 5 nodes
V.5 61 connected graphs on 6 nodes
A summary of the enumeration with one arc cut is in Table 2.
VI Pairs of Cuts
Cutting two distinct arcs of a connected 2-regular digraph produces unlabeled digraphs with components where 4 nodes appear at the cuts: 2 with indegree 1 and outdegree 0, and another 2 with indegree 0 and outdegree 1. The “internal” nodes keep their degrees. (Cutting the same arc twice is not interesting because that merely produces two disconnected graphs already covered by the previous section.) The operation with two cuts is topologically more complex than products of a single cut. (i) There is no longer a 1-to-1 correspondence from the graph with the 2-in 2-out nodes to the uncut parent. There are generally two variants of merging the nodes with total degree 1 to rebuild a 2-regular digraph; exceptions are cases with high symmetry like in Section VI.1 which obviously has the parent shown in Section II.1. (ii) If the two cuts target a pair of arcs between a single pair of nodes or more generally two arcs of a 2-connected graph, a graph with more than one component (i.e. two graphs of the type in Section V) may result. So the generating function of is the product of the generating functions and to account for graphs where all four nodes of degree 1 are in the same component, plus the symmetrized square generating function of by to account for the graphs where two nodes of degree 1 are in one component, the other two nodes in another component, and any other number of 2-regular graphs in further components. [The symmetrized square of a generating function is following from the cycle index for the symmetric group (Flajolet and Sedgewick, 2009, I60).]
A gallery of these 2-in 2-out graphs up to 7 nodes illustrates that concept in the next 3 subsections, showing only the connected digraphs.
VI.1 1 connected graph on 5 nodes
VI.2 4 connected graphs on 6 nodes
VI.3 21 connected graphs on 7 nodes
A summary of the enumeration with two arcs cut is in Table 3.
VII Summary
Table 4 summarizes the bare counts .
The row sums 1, 3, 8, 25, …count the graphs with any number of components. and have already been computed by Briggs Briggs (1997a, b). We observe that Briggs’ extrapolations to more than 5 nodes Briggs (2000) underestimate the true number of graphs for 6 – 9 nodes.
Appendix A Machine Readable Tables
The ancillary directory contains the information of the unlabeled 2-regular digraphs in files named Reg.txt.zip, where is the number of nodes. After unzipping, each file contains up to three successive lines per graph:
An arc list for arcs, referring to a representative of the labeled graphs created by the -group, with labels from [math] up to , in square brackets. Each bracket contains a pair of numbers, separated by a comma; the first is the tail node and second the head node of the arc. Multiarcs are rendered by repeating such pairs. 2. 2.
A capital V, the number of multiarcs in the graph (i.e., the number of entries larger than 1 in the Adjacency Matrix), a blank, the trace of the Adjacency Matrix (i.e., the number of loops), a blank, and the Pólya Cycle Index (a multinomial in the free variables ).
Filtering the lines that start with V0 in these files we obtain 1, 3, 8, 27,…unlabeled, not necessarily connected, 2-regular digraphs with nodes without multiarcs (Foundation Inc., 2023, A005641).
Filtering the lines that start with V0␣0 in these files we obtain 1, 2, 5, 23,…unlabeled, loopless, not necessarily connected, 2-regular digraphs with nodes without multiedges (Foundation Inc., 2023, A219889).
As a further check, filtering the lines that contain ␣0 we obtain 1, 2, 6, 15, 68,…graphs on nodes without loops (which may have multiarcs) (Foundation Inc., 2023, A307180).
One application of this information yields the -rooted unlabeled 2-regular digraphs by defining the generating function for the number of ways of labeling a node as 0 (not marked) or 1 (marked), and then substituting in the cycle indices. Summation over the cycle indices of all graphs of fixed generates Table 5.
Another information drawn from the cycle indices are the parities of the permutations of the node-labeled 2-regular digraphs that leave the unlabeled graph intact. A permutation is odd, iff there is an odd number of even-length cycles, i.e., iff for even index there is an odd exponent in the factor of the cycle index. For products of different the product rule for the signs of cycles rules. Example: one of the 25 graphs on 4 nodes has the cycle index .
- •
The term is one permutation with no even index, so this is an even permutation.
- •
The term is two permutations with an even index with exponent 1, so this represents two odd permutations.
- •
The term is three permutations with an even index with exponent 2, so this represents three even permutations.
- •
The term is two permutations with an even index with exponent 1, so this represents two odd permutations.
The ancillary directory contains the information of the connected unlabeled fairly 2-regular digraphs of Section V in files named Regf.txt.zip, where is the number of nodes, including the 2 nodes with degree 1. The arc lists contain arcs and the lines starting with are the cycle indices.
The ancillary directory contains the information of the connected unlabeled fairly 2-regular digraphs of Section VI in files named RegF.txt.zip, where is the number of nodes, including the 4 nodes with degree 1. The arc lists contain arcs and the lines starting with are the cycle indices.
Appendix B Java Code
The ancillary directory contains the source code of the Java classes in the org/nevec/rjm subdirectory. The javac command in the Makefile compiles the code. The other lines in the Makefile demonstrate how the counts for the unlabeled digraphs are obtained by calling two main classes in succession. The first is Regul which generates incidence matrices for digraphs of mixed connectivity and of specified degree squences and prints the corresponding edge/arc lists which is redirected to an intermediate file. Unlbl2RegGraphHashSet then reads such an edge/arc list and reduces these sets to unlabeled graphs edge lists by running through all row-column permutations and leaving only one representative in its standard output. The two man-pages Regul.1 and Unlbl2RegGraphHashSet.1 provide details of options and arguments of the two classes.
The examples in the Makefile are not optimized for speed. They construct the for example with 2 nodes of degree 1 and nodes of in- and outdegree 2. Just two geometries occur: the 2 nodes are connected to the same node or to different nodes. So one could gather all cases by running the program twice forgetting the 2 leaf nodes, constructing graphs with nodes: (i) a run with 1 node of indegree 1 and outdegree 1 and n-3 nodes indegree and outdegree 2, (ii) a run with 1 node of indegree 1 and outdegree 2, 1 node of outdegree 1 and indegree 2, and n-4 nodes of indegree and outdegree 2. After the reduction to unlabeled graphs the 2 leaf nodes could be re-attached at the nodes which are uniquely characterized by their underrun of degrees.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Brinkmann (2013) G. Brinkmann, Discr. Math. 313 , 1 (2013) . · doi ↗
- 2Ramanath and Walsh (1987) M. V. S. Ramanath and T. R. Walsh, J. Graph Theory 11 , 471 (1987) . · doi ↗
- 3Foundation Inc. (2023) O. E. I. S. Foundation Inc., (2023) , https://oeis.org/.
- 4Flajolet and Sedgewick (2009) P. Flajolet and R. Sedgewick, Analytic Combinatorics (Cambridge University Press, 2009).
- 5Harary and Palmer (1973) F. Harary and E. M. Palmer, Graphical Enumeration (Academic Press, New York, London, 1973).
- 6de Mello Koch and Ramgoolam (2012) R. de Mello Koch and S. Ramgoolam, Phys. Rev. D 85 , 026007 (2012) . · doi ↗
- 7Mathar (2019) R. J. Mathar, vixra:1901.0148 (2019) .
- 8(8) C. G. Bower, “Further transformations of integer sequences,” .
