Manuscript Offprint
arXiv:2610.27025A Geometric Principle for Path Selection in Directed Acyclic Graphs
Abstract
There are many types of path between nodes of a Directed acyclic graph (DAG), including the shortest and longest paths. Here, we ask whether the choice of path used in any analysis reflects the geometry of the latent space in which the DAG is embedded. To do this we define -cube spacetimes, a family of continuous ordered spaces in which a single parameter determines whether the ordered distance satisfies the ordered triangle identity when , or the reverse ordered triangle identity when or , both of which are rarely studied. The forward connection kernel in the case has infinite hyper-volume, yet it is a well defined model. We then construct random geometric DAGs embedded in our -cube spacetime and study their geometry. For , where the ordered triangle identity holds, the shortest paths provide the closest approximation to the continuum ordered geodesic while for and , where the reverse ordered triangle identity holds, this role is instead taken by the longest weighted path. We also test the robustness of this relationship in a geometric citation model in which the random geometric DAG is supplemented by a preferential-attachment-type mechanism allowing connections beyond the strict geometric cut-off. The same broad correspondence between latent geometry and ordered geodesic path type is recovered. Our results show that the preference for shortest or longest paths in a DAG is closely connected to the geometry assumed for its latent space, and suggest that path structure can provide information about latent geometry, even when that geometry is not directly observed.
1 Introduction
In directed acyclic graphs (DAGs), there are many types of paths between two nodes which can be used to analyse the network. In citation networks, for example, longest paths and related constructions such as main-path analysis identify extended innovation trajectories through the network (Ho et al., 2024a, Hummon and Doreian, 1989, Price and Evans, 2025), while the intermediacy measure (Šubelj, Waltman, Traag and van Eck, 2020) favours shortest paths in one limit. However, there is no single principled reason to prefer one path notion over another in general.
In this work, we take a different perspective: rather than asking which path is intrinsically “most meaningful”, we ask whether the preference for shortest or longest paths reflects a choice of distinct types of geometry for the DAG. The motivation for this question comes from the relationship between networks and latent geometry. In machine learning it is often useful to embed data in a continuous space equipped with a notion of distance, typically a metric space such as Euclidean or hyperbolic space (for example Bordes et al., 2013, Hoff et al., 2002, Krioukov et al., 2010, Mikolov et al., 2013, Nickel and Kiela, 2017). These spaces, however, have no intrinsic sense of order: there is no sense of moving forward or backwards, no natural partial order on their points. DAGs are different. A DAG defines a partial order
*ORCID: 0009-0004-2564-0140
ORCID: 0000-0003-3501-6486 on its nodes, and in a continuous-space description this is analogous to introducing a time coordinate which distinguishes past from future. Temporal and spatial coordinates can therefore be treated together within a spacetime description. Embedding a DAG in such a continuous ordered space allows geometric methods to be used to study its structure. In our study we develop a new ordered space, the -cube spacetime, as a family of continuous spaces whose geometry is controlled by a single parameter. We then create DAGs embedded in this space. By understanding the relationship between geometry and network paths, we can ask what may be inferred when a DAG is observed without any explicit latent space.
There is an established literature on DAGs embedded in ordered continuous spaces. Some of this work is motivated by relativity and cosmology, particularly the causal-set approach to quantum gravity (Bollobás and Brightwell, 1991, Bombelli et al., 1987, Brightwell and Gregory, 1991, Dowker, 2005, 2006, Myrheim, 1978, Rideout and Wallden, 2009, Surya, 2019). Related spacetime constructions have also been applied to citation networks (Clough and Evans, 2016, 2017, Clough et al., 2014) or developed for DAGs in general (Sáez de Ocariz Borde et al., 2025). Minkowski and de Sitter spacetimes provide natural examples of continuous spaces with a distinction between temporal and spatial directions. They also come equipped with a natural measure of separation, proper time. However, these highly symmetric spacetimes are more restrictive than we require here. We therefore construct a different ordered space, the -cube spacetime, which allows us to vary the geometric properties of the ordered distance within a single framework. This makes it possible to study both ordinary and reverse triangle identities, and hence geometries in which either shortest or longest paths play the role of the continuum ordered geodesic.
The paper starts in Section 2 where we introduce the -cube spacetime and we define how we measure distances and define geodesics in such a space. In Section 3 we define the DAGs embedded in this space and the paths we use to analyse these DAGs. Section 4 gives the results of the comparisons we make between the different paths in the DAGs and the geodesics of the -cube space model. We conclude with a discussion of the implications of these results and possible extensions in Section 5.
2.1 Cube-space rule
We start from the work of Bollobás and Brightwell (1991) on CUBE SPACETIME which is the set of points given by and a partial order . The partial-order encodes the direction in cube spacetime and this is provided by the CUBE-SPACE RULE. Two points and lying in are only connected with coming later than , denoted as , if every coordinate of is less than or equal to the corresponding coordinate of . That is
This defines a partial order (see Appendix A.3.1) on cube-space.
This cube-space rule generalises the notion of causality that lies behind the existence of a time coordinate and so an order in the points of traditional spacetimes. Note that any point is “earlier” than a point , that is , only if lies in a hypercube with one corner at , hence the name of the space and the rule.
2.2 Distance
We also need a measure of the separation between two points in our cube spacetime. The reason is that we only want to connect to nodes which are less than a distance
R apart where R will be one of our model parameters. This is often the only criteria used in traditional random geometric graph models (Dall and Christensen, 2002, Gilbert, 1961, Penrose, 2003) but it is rarely imposed when creating DAGs.
With normal geometry, Euclidean or more general Riemannian spaces, the space comes with a measure of distance which satisfies the criteria to be a distance in the formal mathematical sense (Definition A.1 in Appendix A.1). These distance measures often satisfy the triangle identity making them a metric in the formal mathematical sense (Definition A.2 in Appendix A.1). However, we are more interested in spacetime geometries with order, such as Minkowski spacetime and de Sitter spacetime. In these examples, the separation of points is given by the proper-time which is neither a distance nor a metric in the usual formal sense (see Appendix A.3.4).
We choose to work with a more general definition of distance, one often used with data, the MINKOWSKI DISTANCE , often referred to as the p-norm or the -norm. This measures the separation between two points and , each with real coordinates and ( ), as
Note we always take the positive real root so . With , this Minkowski distance satisfies the formal conditions for a distance (Definition A.1 in Appendix A.1). Further, it also satisfies the criteria to be a metric (Definition A.2 in Appendix A.1) as it also satisfies the triangle inequality. For instance, is the familiar Euclidean distance measure which has special properties; it is invariant under rotations and translations. On the other hand, the metric is used for other values of in data science when there is often no natural rotational symmetry in the data Deza and Deza (2009).
However, given the partial-order on our cube-space means that we have no use for the Minkowski distances except when . So we define what we call an ORDERED DISTANCE between two points and where
This defines what we call our -CUBE SPACETIME, a triple with points taken from , with a partial order defined using the cube-space rule, and an ordered distance . We set out our formal framework for distance measures in spaces with order in Appendix A.3.3.
The main reason for us working with this definition of distance comes when we consider the triangle identities. For , our distance satisfies the ORDERED TRIANGLE IDENTITY (see pp. 30–31 of Hardy et al., 1952) that
This is weaker than the usual triangle identity for a normal metric since in this case the inequality only needs to hold for one permutation of the points , and . For instance we do not need to have any relation to . So for the ordered distance of (2.3) is an ORDERED METRIC following the definitions of Appendix A.3.3.
Note that this distance is unrelated to distances used in Minkowski spacetime as described in Appendix A.3.4.
This is very similar to, but not identical to, the TIME SEPARATION FUNCTION in Definition 2.8 of Kunzinger and Sämann (2018) used for work on LORENTZIAN LENGTH SPACES.
The primary result we want to exploit in our work is the fact that this ordered distance of (2.3) for both and also satisfies the REVERSE ORDERED TRIANGLE IDENTITY (see pp. 30–31 of Hardy et al., 1952)
That is for (excluding ) the ordered distance of (2.3) is an ORDERED REVERSE METRIC from the definitions of Appendix A.3.3. This regime mimics the properties we have for the spacetimes used in relativity, such as Minkowski spacetime, since the proper time provides an example of an ordered reverse metric, see (A.17) in Appendix A.3.3.
One point worth noting is that the case of is rather special. If two points are connected, say , then all paths between those two points have the same length (see pp. 30–31 of Hardy et al., 1952). This also means that the triangle inequalities are always satisfied with exact equality, that is if .
2.3 Geodesics
Given the ordered distance of (2.3) we can define the ordered geodesic as paths (a formal definition of a path is given in Section 3.5 below) in this space which are extremal in length (see Appendix A.2 for a longer discussion of geodesics). The ordered geodesic in our -cube spacetime from the source node to the sink is the diagonal . This is the unique ordered geodesic between these points except when when all paths are ordered geodesics. So we will use the diagonal as the reference path in our analysis below.
The idea is that when we look at different paths in the DAG embedded in -cube spacetime, the ordered geodesic represents the most important path between two points in the continuous space, so we are asking what path in a DAG represents the ‘best’ path in the continuum space in which the DAG is embedded. Choosing the diagonal as the best path between two points is a modelling assumption, but one that can be justified by the importance of ordered geodesics in several disciplines: in the formal mathematics of geometry, in physics (e.g. mechanics), computer science (e.g. scheduling Kelley and Walker, 1959) and even social science (e.g. bibliometrics in Ho et al., 2024a).
3 DAGs embedded in spacetime
In this section we look at a simple discrete model that creates a random DAG embedded in the continuous -cube spacetime.
3.1 Adding order to random geometric graphs
A useful baseline for studying networks with an underlying geometry is provided by random geometric graphs (RGGs). In these models, nodes of a network are placed at random in a continuous space and edges are added between nearby nodes. Most examples are for the case where the density of points is constant on average and where the space is Euclidean space (for example Dall and Christensen, 2002, Gilbert, 1961, Penrose, 2003). Equally, most existing work is for undirected networks with many cycles where there is no explicit sense of order in the network.
However, we are focusing on directed networks with no cycles, DIRECTED ACYCLIC GRAPHS (DAGs). Such networks have an explicit sense of order since if you follow a walk in network, moving from node to node along an edge in the direction of that edge, you can never return to any node you pass through; there are no cycles. This lack of a return option means that every node in a DAG has a sense of direction, so following an edge is moving “forward” consistently.
More formally, consider a directed network where is the set of nodes and is the set of directed edges. Then a PATH in a directed network is a sequence of nodes in which consecutive pairs of nodes form directed edges in the correct orientation, that is for all .
The order present in a DAG is defined as whenever there is a path from node to node . That is
The lack of cycles in a DAG ensures this is a ‘partial order’ as defined in Appendix A.3.1.
So creating a random geometric DAG means we need to look beyond the vast majority of work on random geometric graphs and we have to start by working with a continuous space with a sense of order. As we reviewed in Section 1, the spacetimes used in relativity such as Minkowski space, have been used before (for example Bollobás and Brightwell, 1991, Clough and Evans, 2016, 2017, Clough et al., 2014, Rideout and Wallden, 2009) but these are too limited for our needs here. So instead we will use our -cube model defined in Section 2 with the cube-space rule of (2.1) providing the order.
3.2 Limiting the length of edges
Our second condition for an edge to exist in our random geometric DAG is to emulate the short distance criteria used in traditional random geometric graph models. Typically edges are only created between points less than R apart, where R is a positive real parameter of the model. Such a short length condition is rarely imposed when creating random DAGs embedded in spacetime; for example Bollobás and Brightwell (1991), Clough and Evans (2016, 2017), Clough et al. (2014), Rideout and Wallden (2009) impose no such limit.
3.3 The RGDAG model
Using the cube spacetime rule and the length cutoff to define the directed edges between randomly placed points gives us our RANDOM GEOMETRIC DAG MODEL (RGDAG), a network embedded in our -cube spacetime.
We start by placing nodes in the -dimensional hypercube . Each of these nodes is given coordinates from the interval , denoted as with the index running over the coordinates, . We chose the value of each coordinate uniformly at random from the interval . In addition we add a global source and a global sink to give a total of nodes.
Adding the edges is done using the cube-space rule of (2.1) and the ordered distance of (2.3). Two nodes and are connected by a directed edge from to if and only if
Since the choice of coordinates of each point is made independently of the coordinates of other points, this is very like a Poisson Point Process (PPP). The difference is that we fix the total number of points in the model rather than letting it be a random variable drawn from a Poisson distribution. However, for large N the two processes will become indistinguishable. Also note that numerically, our coordinates are chosen from so that the value 1.0 is excluded but this has no noticeable effect in our simulations.
See for example Fig. 1. So the RGDAG model has two real parameters and chosen such that and .

(a) ,

(b) ,

(c) ,
Figure 1: Illustration of the random geometric DAG construction in the unit square for three geometries. Nodes are scattered in the square, with a source node at the origin and a sink node at . Directed edges are added from to all nodes lying within distance and with coordinates that are monotonically increasing in every dimension. Panel (a) shows the case, where the cutoff boundary is circular. Panel (b) shows the case, where the cutoff boundary is given by the corresponding curve. Panel (c) shows the case, where the forward connection region is unbounded.
In addition, Table 1 summarises some of the properties of these spaces.
| Spacetime | Curvature Unit Ball | Ordered Identity | Volume | |
|---|---|---|---|---|
| -cube | Convex | Normal | Finite | |
| -cube | Flat | Equality | Finite | |
| -cube | Concave | Reverse | Finite | |
| -cube | Concave | Reverse | ||
| Minkowski | Concave | Reverse | ||
Table 1: Properties of various spacetimes. The curvature of the unit ball as viewed from the origin is given in each case. This is correlated with the ordered triangle identity, defined in (2.4) for the normal case and in (2.5) for the reverse case. The forward connection kernel is the region of space containing the points that can be connected to from a point when the maximum separation is . The formula for the hyper-volume is discussed in Appendix B.1. For Minkowski spacetime, the separation is measured using proper time of (A.21) and is the largest proper-time allowed between points.
At this stage, we have a DAG with nodes. However, not all nodes will be connected to the source and/or sink by at least one path, so this DAG is not always an interval. So the last step is to find the interval DAG which is the subgraph where every point lies on at least one path from to .
3.4 Adding Heavy-Tailed Structure to Geometric DAGs
Random geometric DAGs provide a useful baseline model because they allow us to isolate the role of the underlying geometry. However, they are also quite abstract. Real DAGs, such as citation networks and innovation networks, often have additional structural features which are not present in the RGDAG model, including heterogeneous degrees, clustered topic structure, and heavy-tailed degree structure (Price, 1965, 1976, Redner, 1998). Our aim here is to look at DAGs produced in a model that retain some of the geometric structure of our RGDAG model but at the same time have a heavy-tailed degree structure so that they are more like DAGs found in real data. We will use the context of citation networks as the motivation for our model and draw on work to produce realistic models in that context.
We start with the DAG of our RGDAG model of Section 3.3 embedded in -cube spacetime. We proceed as before with nodes, each representing a paper with coordinates , each coordinate chosen uniformly at random between zero and one.
However, for the citation network context, we view each paper v in terms of two other coordinates: the TIME COORDINATE and TOPIC COORDINATE where
The can be thought of as a publication date for each paper v and we will ensure that there is an edge from node u to node v only if . The R parameter effectively controls how far back a paper can cite and how close topic-wise it is to its bibliography. The coordinate then represents some topic space. That is we will want papers with similar values to have a much higher chance of being connected as this represents documents writing on similar topics. Yet, time also plays a role. So two papers having the same coordinate but different coordinates are “published” at the same time so can never cite each other however close they are in terms of their topic coordinate . The edges between nodes and the citations between documents, will be constructed in two stages.
The first set of edges are going to represent what we call PRIMARY REFERENCES. For a each paper v, we add edges that represent entries in the bibliography of v and which are recent papers in fields close to the main topic of paper v. This is done using the same -cube space rule used in our RGDAG model. That is we create an edge from any primary reference node r to our current paper v where which ensures that . The R parameter of our model now sets the expected number of primary references per node, , not the total number of references.
Once we have the set of primary references of the node , say , we now add what we call SECONDARY REFERENCES. To do this we look at every primary reference of , say and we look at the references of those nodes which we call SECONDARY REFERENCES, . With probability , another parameter of this model, we add each secondary reference to the bibliography of node , that is we add an edge . Each secondary reference has a path of hop length two, to the node . So the final expected degree is times the expected number of primary references per node as set by . Essentially this second step mimics a process in which the authors of a new paper read recent papers, the primary references, and these form the core of their bibliography. They also read these primary references and read/copy some of the references, our secondary references, to the bibliography of the new paper . This copying mechanism is well known to generate fat-tailed degree distributions, both in terms of generic network modelling and citation networks (Evans and Saramäki, 2005, Goldberg et al., 2015, Krapivsky and Redner, 2005, Kumar et al., 2000, Pandey et al., 2020, Simkin and Roychowdhury, 2005, Vazquez, 2001).

Figure 2: Illustration of the two-dimensional latent time-topic space. Nodes are placed in the original unit square, with global source and sink . The rotated time axis lies along the source-sink diagonal and defines the temporal ordering, while the orthogonal axis represents the topic direction. The dashed blue curve shows the distance cutoff R from the source, illustrated for p = 2, and the black arrows indicate admissible forward connections. The dotted purple lines show the decomposition of a node's displacement into its and coordinates.
3.5 Paths in DAGs
Consider a directed network where is the set of nodes and is the set of directed edges. A path is a sequence of nodes in which consecutive pairs of nodes form directed edges in the correct orientation, that is for all .
The LENGTH of a path P is simply the sum of the lengths of each edge in the path.
We will study two different ways to assign a length to each edge and hence to any path. First we define the HOP LENGTH of a path to be the number of edges in the path, the number of nodes minus one. So the hop length of each edge is equal to one, and
Our second measure of length assigns each edge to have a length (or weight) equal to the ordered distance of (2.3) between the head and tail nodes of that edge. We define the WEIGHTED LENGTH of a path to be the sum of these ordered distance edge lengths
In many network settings, the geodesic in a network is identified with the shortest path, especially in undirected and unweighted graphs, see ch.10 in Coscia (2021) for example. This convention is natural in many contexts such as when asking how many steps separate two individuals in a social network (“six degrees of separation”) or finding the fastest route between two locations. This emphasis on short paths is central to the theory of small-world networks, where rapid reachability between otherwise distant nodes is one of the defining features. So one path we will study is the hop shortest path from s to t, a path from global source s to global sink t with the least number of edges, so formally
Here is the set of all directed paths from source s to sink t. Likewise, we will study the shortest weighted path where
For directed acyclic graphs, however, the focus on shortest paths alone is no longer justified. A DAG carries an intrinsic ordering, and paths are not merely routes between two points; they can represent ordered chains of dependency, influence, or causal precedence. In such settings, the most informative path is not necessarily the shortest one. In scheduling problems, the longest path gives the minimum time needed for a process (Coffman and Graham, 1972, Levy et al., 1963a,b). In studies of quantum gravity, the longest path of a DAG embedded in a physical spacetime represents the best approximation to a geodesic (Bollobás and Brightwell, 1991, Brightwell and Gregory, 1991, Rideout and Wallden, 2009). In an innovation network, for example, if a scientific paper enables a patent, which later enables a technology, which eventually contributes to a vaccine, then the intermediate steps are not redundant, they are part of the causal chain by which the final object comes into existence (Ho et al., 2024a,b, Price and Evans, 2025). Citation networks provide a similar example, where long paths can represent extended intellectual lineages rather than inefficient detours (Clough and Evans, 2016, 2017, Clough et al., 2014, Evans et al., 2020).
So with this in mind we will also look at the paths from the global source s to the global sink t which have the longest hop length from and the longest weighted path , where
Note that in a network there are paths which satisfy the criteria of an ordered geodesic as defined in Appendix A.3.3. In a DAG, the shortest and longest paths using any given measure of edge length always define ordered geodesics, minimal ordered geodesics and maximal order geodesics respectively. So when we make comparisons between the ordered geodesic in the continuous -cube spacetime and the shortest/longest hop/weighted paths in the embedded DAG, we are making comparisons between ordered geodesics of various types. However, when we refer to “the ordered geodesic” we will mean the ordered geodesic defined in the continuous -space. The paths used in the networks will be referred to by the names already given.
4 Comparing paths in RGDAG and -cube spacetime
So far we have established the geometry for ordered spacetimes, both the continuous -cube spacetime and the discrete RGDAG. Now we can ask how the paths in the discrete space are related to those in the continuous space. Instead of assuming that the shortest path in a network is the correct analogue of a geodesic, we ask which path in a DAG best approximates the continuum reference path.
The -cube spacetime construction introduced above is useful precisely because it is ordered and yet it provides a controlled way to compare two regimes. Looking at the obvious representation of this spacetime, using orthogonal coordinates with identical scales for each coordinate axis, our intuition is that the most important path from source to the sink is the straight line, the diagonal of the unit hypercube .
We will not investigate the concept of “straightness” here. Rather, we note that this diagonal is also an extremal path in terms of the ordered distance of (2.3) so this diagonal is indeed an ordered geodesic in our terminology. A more physical motivation for focusing on this diagonal is that in two-dimensions this cube-space is identical to the -dimensional Minkowski spacetime. In that case, the diagonal is the path followed by any massive non-interacting particle moving from the spacetime point to the spacetime point . That is, it is the path of least effort in that physical example.
However, the true power of our -cube spacetime model comes when we consider different values of . For , the diagonal is the shortest continuum source-to-sink path in terms of our ordered distance measure of (2.3). In this case, the diagonal is a minimal ordered geodesic. However, as we have shown, our ordered version of (2.3) for and is a reverse ordered metric satisfying the reverse ordered triangle identity (2.5). Now we find that the diagonal has the longest length of any path between the source and sink as measured by of (2.3). In this case the diagonal is a maximal ordered geodesic in our terminology.
What we now want to do is compare the diagonal, the ordered geodesic in the continuum case, the various paths in the discrete RGDAG embedded in the -cube spacetime. Which path in the DAG is the best approximation to the ordered geodesic in the continuum model? To do this we first define measures that allow us to compare different paths.
4.1 Geodesic Similarity Measures
The simplest measure we can define is based on the weighted length defined by the metric or our ordered distance of (2.3). In these units the length of the side of our hypercube is simply 1.0. The weighted length of our reference path between source and sink , the diagonal is used to define the ordered geodesic, so . For our source at and sink at we have that .
To compare the weighted length of any path in our DAG, we use the same ordered distance measure to find the length of each edge and the sum gives us the weighted length of a path
We compare this to the length of the ordered geodesic using the normalised length deviation where
Thus if the path has the same total geometric length as the continuum reference, if it is longer, and if it is shorter. Note we use the weighted length as the basis for our metric even if the path was chosen by optimising the number of hops in the path. The hop distance is an intrinsically discrete measure which does not have exact analogue which we can use for the ordered geodesic curve defined in the continuum space .
Other options include using an approximation where we use R or the inter-point length scale as the units for the measurement of the length of the ordered geodesic in the continuum.
To measure how close a path P follows our reference curve, to the continuum ordered geodesic , we define the point-to-reference curve distance using the Euclidean perpendicular distance
where v is the point and is the reference path of interest. In our case we apply this to each point in a discrete path P in our DAG and then take the mean to give the perpendicular distance measure . That is
The quantity is zero if and only if every node of the path lies on the reference path .
4.2 Results for the random geometric DAG
4.2.1 Positive p-Values
We start by looking at how the various paths behave in the two positive regimes, and , in dimensions . The analysis is organised by mean out-degree , which is varied by changing the geometric cutoff (see Appendix B.1 for an analytic expression).
The results for are shown Fig. 3 while those for are given in Fig. 4. A few features stand out.
First, the longest paths in the DAG, by hop or weighted length, are better approximations to the ordered geodesic when but the shortest paths in the DAG, by hop or weighted length, are better approximations to the ordered geodesic when . Thus the optimal path in the DAG satisfies the same triangle identity as the underlying geometry used to create the DAG.
Secondly, for any given , the best of the two optimal paths by hop length (shortest for , longest for ) are poorer approximations to the ordered geodesic than the corresponding best path optimised for weighted length. This is necessary for the measure which uses the weighted length given that the weighted discrete path was defined by optimising the same quantity. What is more informative is that the perpendicular distance measure shows the same result even though the perpendicular distance is not directly optimised when finding the longest/shortest paths in the DAGs.
Thirdly, for any given p, the best of the two optimal paths by hop length (shortest for p > 1, longest for p < 1) is still a good approximation to the ordered geodesic even if it is slightly less successful than the weighted path in following the ordered geodesic. This is important because if we only have the DAG and not the underlying space, e.g. a DAG created from a dataset, we can define the optimal hop length paths but not the weighted paths. Yet we can be confident that the optimal hop-length paths in the network are good choices as ordered geodesics in the discrete network.
Lastly, results for the optimal hop length paths, especially the shortest hops path, show significant fluctuations. This is because we are finding paths with small integer hop length.
We might want to use the same Minkowski distance as we use for the weighted length of paths. However, all we require here is some measure of the deviation of the discrete path from the diagonal so for simplicity we just use Euclidean geometry for this measure. In any case, there is often no ordered distance defined between the path and the point on the continuum ordered geodesic that we want to consider as closest e.g. the point on the ordered geodesic with the same time parameter as the node in the DAG. So we have to use a metric not an ordered metric for this measure.
There can be many of these tied with the same value. In this case, during path reconstruction we select uniformly at random among all next nodes that preserve the optimal hop count. In addition, when the length of the ordered geodesic is slightly above an integer number of , that is , the length of the shortest hops path may change sharply between different instances.
Longest hops Shortest hops
Longest weighted Shortest weighted






Figure 3: Normalised length deviation for the four graph-based paths as a function of mean out-degree , shown for and in dimensions . Each point is averaged over 500 realisations for and 100 realisations for , with nodes per; error bars show the standard error of the mean of across realisations. In the metric regime , (yellow diamonds) remains closest to zero across all dimensions, while in the fractional regime this role is taken by (green triangles).





Figure 4: Perpendicular distance measure from the graph path to the reference diagonal, plotted against mean out-degree for and in dimensions . Each point is averaged over 500 realisations for and 100 realisations for , with nodes per; error bars show the standard error of the mean of across realisations. The same qualitative transition as in Fig. 3 is observed: (yellow diamonds) is closest to the reference curve for , whereas (green triangles) is closest for .
4.2.2 Negative p-Values
The properties listed in Table 1 show that the geometry of the RGDAG model in the regime is the closest match to that seen in Minkowski spacetime. As our analysis shows, this regime is perfectly well defined in our directed geometry and the ordered distance of (2.3) is a well defined ordered reverse metric (as defined in (A.17) of Appendix A.3.3) just as it was for . Yet negative values have received almost no attention. So this section also acts as a proof of concept that this regime can be used for analysis. Again, we vary but we express our results in terms of the value for measured in our simulations (see Appendix B.1 for analytic expressions).
Given our observation that the underlying geometry was the determinant in finding the paths closest to the ordered geodesic, we should expect that the regime should have the same properties as the regime given both obey the same reverse ordered triangle identity. This is exactly what we find as shown in Fig. 5 and Fig. 6.

Figure 5: Perpendicular distance measure from the graph path to the reference diagonal, plotted against mean out-degree for in dimensions, with nodes, averaged over 500 realisations per radius. Error bars show the standard error of the mean of across realisations. As in the regime, (green triangles) remains the path family closest to the reference, while the other path families remain substantially farther away.

Figure 6: Normalised length deviation for the four graph-based paths as a function of mean out-degree , in dimensions, with nodes, averaged over 500 realisations per radius. Error bars show the standard error of the mean of across realisations. As in the regime, (green triangles) remains the path family closest to the reference, while (yellow diamonds) deviates most strongly, consistent with the reverse ordered triangle identity shared by both regimes.
4.2.3 The transition around p = 1
There is a change in the behaviour of our models at , the point at which the ordered distance of (2.3) changes from an ordered metric obeying the ordered triangle identity (2.4) for to a reverse ordered metric obeying the reverse ordered triangle identity of (2.5). This is reflected in the fact that the diagonal is a minimal ordered geodesic for but it is a maximal ordered geodesic for and .
At we are using the Manhattan metric to give our weighted distances and this has the special property that all paths from source to target have the same weighted length and this includes the ordered geodesic. To examine this boundary we perform a finer sweep in around and track both the length of paths through (4.2) and the distance to the ordered geodesic through (4.4). Results are shown in Fig. 7 and Fig. 8.
In the case of the paths with optimal weighted length, the crossover is especially clear. The two optimal weight paths meet at p = 1, as they must, with both varying linearly on either side of p = 1 but with a discontinuity in slope at p = 1.
The paths which optimise hop length show a much weaker dependence on the change in geometry. Hop length is discrete, and many paths can attain the same optimal value. When building an optimal hop-length path, we choose uniformly at random from the set of nodes that we can add to the path being built and which lie on an optimal hop count path. In , the two hop-based curves meet at , where all paths have the same weighted length, but there is no corresponding exchange in which hop path lies closest to the continuum reference within this narrow range: the shortest-hop path remains closer to on both sides of . Similarly, in , no crossover is visible: the longest-hop path remains closer to the reference diagonal on both sides of .
The weighted-path transition at is consistent across all dimensions studied, . The hop-based paths do not show a corresponding exchange of the preferred path within this narrow range of in either or .
Longest hops Shortest hops Longest weighted Shortest weighted


Figure 7: A sweep in around the transition at , showing the normalised length deviation of (4.2) for hop-length optimised paths (top row) and optimised weight paths (bottom row) in dimensions . This is for networks with nodes and . Error bars show the standard error of the mean of across realisations: 500 realisations for and 100 for . The longest and shortest weighted paths meet at and exchange roles across the transition: (green triangles) is closest to the reference for , while (yellow diamonds) is closest for . The hop-based curves also meet at , but do not show the same exchange in which path lies closest to the reference. The lines between data are added as an aid to visualisation and should not be interpreted as implying continuity or meaningful intermediate values between the observations.


Figure 8: Fine sweep in around the transition at , showing the perpendicular distance measure for hop-based and weighted paths in dimensions , with nodes and . Error bars show the standard error of the mean of across realisations: 500 realisations for and 100 for . The weighted paths display a sharp crossover at , with (green triangles) closest to the reference for and (yellow diamonds) closest for . The hop-based paths do not detect the same transition. The lines between data are added as an aid to visualisation and should not be interpreted as implying continuity or meaningful intermediate values between the observations.
4.3 Results for DAGs with Fat-Tails
Fig. 9 and Fig. 10 show that adding the preferential-attachment layer to our RGDAG model of Section 3.3 does not alter the qualitative relationship between the latent geometry and the graph path that best approximates the continuum ordered geodesic.
For , the shortest weighted path remains closest to the reference according to both observables. Its normalised length deviation and perpendicular distance measure approach zero as the mean base out-degree increases. The longest weighted path shows the largest deviations, while the two hop-based paths generally lie between the weighted extremes.
For , this ordering is reversed. The longest weighted path has a length deviation close to zero and the smallest across the full range of connectivity studied. The remaining path families have systematically negative length deviations, with lying furthest below the continuum reference length. Thus, despite the addition of causally valid edges that are not required to satisfy the geometric radius cutoff, the distinction between the metric and fractional regimes is preserved. The weighted-path result is therefore robust to the addition of preferential-attachment structure.


Figure 9: Normalised length deviation for the -cube space model extended with an extra edge copying step. We show the four optimal paths as a function of the expected primary out-degree , shown for and in dimensions. Each point is averaged over 500 realisations, with nodes per graph; error bars show the standard error of the mean of across realisations. In the metric regime , (yellow diamonds) remains closest to zero, while in the fractional regime this role is taken by (green triangles).
Longest hops Shortest hops Longest weighted Shortest weighted


Figure 10: Perpendicular distance measure for the -cube space model extended with an extra edge copying step. We show the four optimal paths as a function of the expected primary out-degree , shown for and in dimensions. Each point is averaged over 500 realisations, with nodes per graph; error bars show the standard error of the mean of across realisations. The same qualitative transition is observed: (yellow diamonds) is closest to the reference curve for , whereas (green triangles) is closest for .
5 Conclusion and Discussion
In this paper, we asked whether the geometry in which a directed acyclic graph is embedded can be identified from its source–sink path structure. To do this we establish a set of concepts such as ordered distance and ordered geodesic appropriate for discrete and continuous spacetimes, a space where there is an explicit partial order on the points in the space. Then we constructed a family of ordered spaces, the -cube spacetimes, consisting of points , with the cube-space rule (2.1) defining the partial order and the ordered distance defining the separation between ordered points. The single parameter controls the relevant triangle identity and therefore a key geometric property of the space: for , satisfies the ordered triangle identity, while for and it satisfies the reverse ordered triangle identity, with marking the transition between the two regimes. This provides a family of continuous ordered spaces in which we can investigate how the underlying geometry is reflected in the paths of DAGs embedded within them.
We generate random geometric DAGs embedded in these ordered spaces, and so representing discrete approximations of the embedding space. We then compared four paths from the source node to the sink node: the shortest and longest weighted paths, and , which is the summation of the distance between every consecutive pair of nodes on the path, and the shortest and longest hop paths, and , which is the number of edges in the path. We compared these paths with the continuum ordered geodesic using two measures: the deviation of the weighted path length from the continuum ordered geodesic length, , and the Euclidean perpendicular distance from the continuum ordered geodesic, . We then extended this analysis to a citation-style model which retains the -cube spacetime embedding while adding a more realistic fat-tailed degree distribution through a local search (from which preferential attachment emerges), and this introduces additional edges beyond the strict geometric cutoff.
For the weighted paths, the path closest to the continuum ordered geodesic is the one whose extremal property agrees with the triangle identity of the underlying ordered space. For , the shortest weighted path is closest to the ordered geodesic, while for and , the longest weighted path is closest. This is consistent with the fact that the continuum ordered geodesic is itself the corresponding optimal path in the continuum limit. The fact that the geometry of the DAG is encoded in the edge weights is not a big surprise. The weights are the ordered distances between points and so they carry a lot of the geometric information about the embedding space into the DAG. Unfortunately, when dealing with a DAG derived from data, there is no explicit embedding space so we do not normally have these weights available.
On the other hand, we found similar results for the optimal hop-based paths: the shortest-hop path tends to provide the better approximation in the metric regime, while the longest-hop path tends to do so in the reverse-metric regimes, as illustrated in Fig. 11. This was not guaranteed, since hop length contains no explicit information about the ordered distance. The same weighted-optimised path/hop-optimised path relationship is also recovered in the preferential-attachment citation model, where the geometry of the embedding space has been diluted further by additional processes when constructing the DAG. This result is particularly useful for networks obtained from data, where there may be no intrinsic embedding space and no intrinsic notion of geometric distance, while hop length can always be defined directly from the graph. The correlation between hop length and weighted length suggests that, despite being blind to the latent space, hop length can still capture important features of its geometry. This broad distinction is observed across dimensions , although the hop-based signal is weaker and more variable than for the weighted paths. This is simply because the low integer values of hop length likely to be encountered are less able to distinguish between paths (see
Price and Evans (2025) for a wider discussion of this issue).
(a) p = 2
(b) p = 0.5

(c) p = -1

nodes

Figure 11: Source–sink paths in a 2D random geometric DAG across the different metric regimes. The same realisation of nodes is used in all panels, with .
Another result is our construction of an ordered space with three different geometric regimes. The different regimes of our -cube spacetime have different geometric features. The cases and have finite forward connection volumes, while still allowing us to choose between geometries with different ordered triangle identities. The regime is novel but may at first appear redundant and of little practical use. However, its forward connection volume is infinite, making it closer to the situation in relativity, where the corresponding volume of the forward connection kernel is also infinite. There may therefore be situations in which this property is physically relevant and the regime is preferred.
More generally, our results show that there is a choice of ordered geodesic in a DAG. When a researcher chooses to work with either the shortest or the longest path, what the researcher is effectively choosing is the geometry of the DAG, something which must be reflected in any latent space in which the DAG is assumed to live. For example if trying to embed a DAG in Minkowski spacetime, one should be using longest paths in the DAG (Clough and Evans, 2017). The longest path may be more informative when trying to follow innovation in citation networks (Ho et al., 2024a, 2025, 2024b, Price and Evans, 2025), since an innovation may develop through a sequence of small intermediate advances, each of which contributes to the final result. This emphasis on longer chains is also consistent with transitive reduction, which removes transitive shortcut edges while preserving reachability and thereby retains the longest source-target paths in a DAG (AlMuhanna et al., 2026, Clough et al., 2014). By contrast, a shortest path may be useful when the aim is to minimise the number of intermediate steps, for example when trying to trace the most accurate copies of a historical document or following a rumour back to its original source. For scientific information, this preference for shorter chains is also reflected in the concept of intermediacy, which tends to favour publications lying on shorter source-target paths (Šubelj, Waltman, Traag and van Eck, 2020). In this case one should look towards ordered spaces obeying ordered triangle identities if trying to embed the citation network.
There are several limitations to the current work. The interval DAG assumption, where every node lies on at least one path from source to sink, is a simplification: when analysing real citation networks, one may have several different key papers in mind which can act as multiple sources or sinks. The effect of such nodes on path observables is not addressed here.
A natural direction for future work is to understand why the hop-based paths reproduce the same broad dependence on the underlying geometry as the weighted paths. One possibility is that the edges forming the optimal hop paths have characteristic weighted lengths. For the shortest-hop path, this scale may be set by the cutoff radius R, while for the longest-hop path it may be set by the typical inter-point scale, . This would imply a strong relationship between hop length and weighted length for the optimal paths. Measuring the edge-length distributions directly would test this possibility. Extending the framework to more general DAG structures, and to network types beyond citation networks such as causal graphs, are further directions for future work.
Data Accessibility
Copies of the code used in this work are available online (AlMuhanna and Evans, 2026).
Funding
AH is supported by a PhD scholarship from the Saudi Arabian Ministry of Education.
Appendices
A Space, Time, Order and Distance
In this section, we summarise some of the formal definitions surrounding the concept of distance between points. Our main focus is on the case where there is a sense of order on our points, such as found in directed networks and in continuous spacetimes. This also helps to define our notation and terminology since the definitions we use are a hybrid of concepts from both discrete directed networks and from continuous spacetimes.
In this section, we will refer most of the time to a set of points . This includes cases where this is an infinite set of points in continuous spacetime. However, the results also apply equally to the case where the points are a finite set of nodes in a network, usually denoted as .
Here will need our points to be connected by a set of DIRECTED EDGES . We will denote a directed edge from point to point as . Edges are an intrinsic part of the definition of a network. For continuous spacetimes, we define a directed edge to exist when there is at least one curve from to . In Euclidean space this is simple as all points are connected to all other points, so the set of directed edges is the set of all ordered pairs of points . In Minkowski spacetime, the set of edges is much more restricted as many points can be space-like separated, that is there is no path between them in either direction. Here we define the directed edges in Minkowski space to be the time-like separated pairs of points in causal order, . Even when there is a curve from to the edge in the reverse direction is never present because of causality.
Some of the following definitions are standard when working with networks with a finite set of nodes V and a set of directed edges E. Other concepts are more familiar in work on continuous spaces. For simplicity, we will just refer to points in the set X and a set of directed edges E between pairs of points to cover both discrete networks and continuous spaces.
A.1 Distances and Metrics
In mathematics a DISTANCE is a real function of two points in a set X that obeys the following axioms
For undirected networks, if there is an undirected edge , we assign two directed edges between two nodes and connected by an undirected edge. That is we have both and and work with this symmetrised directed graph.
Definition A.1 (Distance). A DISTANCE on a set is a function such that for all :
In fact for the rest of this discussion we will work with distance-like functions with a stronger condition, indiscernibility, replacing reflexivity . That is we will invariably demand that if and only if so that unless .
If a distance function satisfies the TRIANGLE IDENTITY then it is a METRIC, that is
Definition A.2 (Metric). A METRIC on is a distance that satisfies, for all :
Note in particular that the triangle identity is true for any permutation of the same three points and , so and must also hold.
A METRIC SPACE is a space X with a metric d.
A.1.1 Minkowski Distance
One well known example of a distance function is the MINKOWSKI DISTANCE which is one generalisation of the well known Euclidean distance. The Minkowski distance , also called the norm or simply the -norm distance, between two points and in real space , is
For , the Minkowski distance satisfies the triangle inequality and hence defines a metric on (Deza and Deza, 2009). Particular examples of the Minkowski distance include
• the Euclidean distance for , ,
• the Manhattan distance for , ,
• the Chebyshev distance for , .
The only place where this matters in our discussion is when we consider null curves in relativity.
Minkowski distance has no mathematical relation to the proper-time used to measure separation of points in Minkowski spacetime
A.2 Paths, Geodesics and Generalised Distances
The main aim of this section is to give the definition of a geodesic that we use in our work. To do that we will carefully define what we mean by distance based on the length of a path such that this applies for both undirected and directed networks. In particular, we will drop the symmetry requirement of Definition A.1 and define what we call a “generalised distance”. We will consider the more specialised case of directed networks with no cycles, networks with partial orders, in the next section, Section A.3.
We start with the standard definition of a walk used in network analysis.
Definition A.3 (Walk). A WALK W in a space is a sequence of points , denoted as where each point is connected to the next point in the sequence by an edge, so .
We use the existence of a walk between two points in one direction to define a directed reachability relation.
Definition A.4 (Reachability). A point y is REACHABLE from point x if there is a walk from x to y. We denote this as .
As we want to work with directed networks, we do not assume this is symmetric, so does not imply . In a Euclidean space, this “reachability” criteria is trivial as all points are connected to every other point. In a spacetime, such as Minkowski space, this is not trivial as reachability is defined in terms of causality and two points may not be connected or they are only connected in one direction.
It is important for several of the results that follow that we include TRIVIAL WALKS as a legitimate walk.
Definition A.5 (Trivial walk). A TRIVIAL WALK is the sequence of a single point , so .
We can also join two walks to create a new walk if the second walk starts where the first walk finished . More formally:-
Definition A.6 (Walk concatenation). The concatenation of two walks and to create a new walk denoted as is defined to be
Note that a walk is simply a concatenation of the sequence of edges that can also be used to define any walk, .
Walks are important in networks as they define which nodes are connected. Our generalisation of edges to the continuous space case give the same interpretation in that case, the existence of a curve from point x to point y means x is connected to y. We may interpret the curve as a walk from x to y, one made up of the points on the curve. What is important is that either way we have a set C of pairs of points which are connected, directly by edges or indirectly by walks.
A PATH P is a walk where no two nodes are the same.
This shows that our reachability relation is transitive. It is reflexive because of teh existence of trivial walks. However, this is not enough for the reachability relation to be a partial order.
Definition A.7 (Path). A PATH in a space is a sequence of points , denoted as where each point is connected to the previous point and it is distinct, so where if and only if .
All paths are walks but the reverse is not usually true in a generic network because of cycles. However, for a directed acyclic graph (DAG), all walks are also paths because of the lack of cycles. The trivial walks are also paths, trivial paths, .
A notation we will also use is that is the set of all possible paths in the space while is the set of all paths which start an initial point and end at . Sometimes we will use to denote one such path running from to , so that .
We also need a function L that gives the LENGTH of a walk W. For our work, a length function must obey the following axioms
Definition A.8 (Length of a walk). The LENGTH of a walk W is a function that obeys the following axioms
This is for any walk W in the space X including all trivial paths .
Since a single directed edge is always a walk, it follows from the non negativity and indiscernibles properties of length that:
Lemma A.1. The length of every edge (even those forming self-loops) must be a positive number.
This includes the length of edges in self-loops. Such edge lengths are often defined to be equal to the edge weights so in that case our length axioms in Definition A.8 put limitations on what edge weights can be used as edge lengths. The indiscernibles and non negativity axioms imply that only the trivial paths have zero length .
Since any walk W can be defined in terms of the sequence of edges in that walk, , the additivity axiom of walks (A.5d) means that:-
Lemma A.2. The length of a walk is the sum of the length of the edges in the walk.
It is quite feasible to replace the indiscernibles axiom with the reflexivity axiom of (A.1b) (zero for trivial paths but can be zero for other paths). The indiscernibles axiom seems more relevant in the network context while the reflexivity condition (A.1b) will allow for null paths in spacetimes.
It is possible to generalise this further. We are using the natural concept of addition for real numbers but we can use other algebraic structures for example Group Graphs (Evans, 2025). Some of our later results will not apply for such generalisations and we do not consider them here.
We are therefore excluding a case where we want to include null paths, paths of length zero. These correspond to paths followed by light in relativity contexts. Such null paths have zero proper-time lengths and they play an important role in relativity. To work with such null paths we would have to replace the indiscernibles axiom for length by reflexivity such as used in (A.15c). This is another possible route but not one we will follow here.
The indiscernibles axiom for lengths (A.5c) and Lemma A.2 together imply the following.
Corollary A.3. The length of a walk is always a monotonically strictly increasing function of the number of nodes in the walk.
This seems like a sensible property for the length of a walk to have and so this gives support to the system of definitions given here .
Let us look at some examples. If our space is the set of nodes of a graph, the definitions of walk and paths coincide with the definitions used in graph theory and network science. In particular, if we use the standard unit weights assigned to edges in a network as the length of each edge, , then the length of any walk is equal to the number of points in the walk minus one. Again that is the default definition of path length in network science (e.g. Coscia, 2021, sec.7, p.111).
The length of a walk in this case can be the number of edges in the walk, that is one less than the number of points. For a continuous space, such as Euclidean space, the Euclidean distance between two points acts is a suitable length function but so can any of the measures of (A.3).
We can now define the GEODESIC running between two points and in our space given a path length function . Qualitatively, the geodesic is the “path of least resistance”, the most “direct” way of getting from to . Formally, we define the geodesic to be a path with an extremal length between two points. This gives two types of geodesic, MAXIMAL GEODESICS using the longest paths and MINIMAL GEODESICS using the shortest paths.
Definition A.9 (Geodesic). A GEODESIC in a space with a length function defined by Definition A.8 is a path from to that has an extremal length between those two points. This gives two types of geodesic, MAXIMAL GEODESICS and MINIMAL GEODESICS where
or
Where is the set of all paths from x to y. It is important that only one of these criteria is used for all pairs of points, we do not define our geodesics using the longest path for some pairs of points while the shortest path is used for the remaining pairs.
Some points to note.
-
These definitions of geodesics work for any set , discrete or not, provided this comes equipped with a measure of length of (A.5) that is defined for any path between two points in .
-
We can have completely different geodesics on one network or space depending on the length function L we use.
-
There can be multiple geodesics between the same pair of points provided the geodesics have the same length.
The one possible exception would be null curves in continuous spacetimes (as followed by light in a vacuum) which have zero “length” i.e. proper time. So as it stands our approach does not include these cases and they do not appear in any of our discrete spacetime models.
When dealing with minimal geodesics, shortest paths, we could also relax this and consider all walks provided only the trivial walks have zero length (indiscernible axiom for length).
-
There is no assumption that paths are reversible. That is if we have a geodesic from to , this does not imply the existence of a geodesic from to and even if one does exist, need not be the same path reversed or even the same length as .
-
We always have the trivial path from x to itself which is just the point x. These are the only paths with one point, and so, regardless of the extremal condition used to define a geodesic, such trivial paths are the only geodesics of length zero . This is property satisfies the indiscernible axiom (A.5c) for lengths.
The fact that the length of a geodesic from any one point x to any other point y means this can be used as the basis for a distance-like function as follows.
Definition A.10. The GEODESIC DISTANCE from point to point is defined to be the length of the geodesic from point to point provided a path exists from to
Clearly we have to specify the length function being used and the maximal/minimal property of the geodesics used to define this function. The uniqueness of the length of a geodesic when it exists is important to ensure this is a function in the formal sense. We will specify the properties of such geodesic distances in our general directed below. To do this we first need to consider some of the properties of geodesics in this directed context.
We start by showing that we can split a geodesic into a concatenation of geodesics.
Lemma A.4. Every geodesic can be split at any point into two geodesics. So for any where then is a geodesic from to and is a geodesic from to .
Proof. Suppose we have split the geodesic at a point to give where the path starts at and ends at while path starts at and ends at . Since the geodesic is a path with no repeated points, the subsequences and are also paths with a sequence of distinct points.
Consider another path from to and suppose had a more extreme length than , so either if we use shortest paths (A.7a) or if we use longest paths (A.7b). This means that is possible geodesic between and and certainly is not a geodesic. However, there is no guarantee that does not share many points with in addition to , . Then we can not combine and to produce a path needed for potential geodesics.
However, the properties of the lengths means and based on our criteria this must be a more extreme length than the original path. That then contradicts the initial assumption that is a geodesic with the most extreme value of length possible. So there can be no path from to which has a more extreme length than the original . This shows that is a geodesic from to .
A similar argument applies to the later part, , that tells this also has the best possible length. So we conclude that we can split any geodesic into two sub-sequences, sub-paths, and these subpaths are guaranteed to be geodesics. That is for any geodesic we have that
The corollary of this lemma is also true. That is if the concatenation of two paths gives a geodesic then the paths are also geodesics.
Note we do not exclude the possibility that in which case is also a geodesic from x to z.
We can also deduce the following property:
Lemma A.5. If we find a point z that lies on some path from x to y, so that , then if and only if z lies on a geodesic from x to y.
Again, this is simply follows from the fact that geodesics are paths with extremal values for their lengths.
Proof. Suppose . Since we have a path from to that then continues onto we have two geodesics from to and from to . If we concatenate these geodesics then the length of this combined path is equal to the extremal length of any geodesics from to . That is, this combined path is a geodesic from to that passes through point as required.
The reverse case states that if lies on a geodesic from to , say , then . If lies on a geodesic then we can use Lemma A.4 to show that we can spit the original geodesic into two parts, and , each geodesics themselves. That is . The additivity of path lengths over concatenation then gives us that as required.
Note that the path here need not itself be a geodesic. All it does is ensure that there is connectivity from x to y via z. Also, in the proof of Lemma A.5, if z is not on a geodesic then we must have strict inequalities from the triangle identities.
Corollary A.6. Suppose we find a point z that lies on some path from x to y which is not a geodesic. Then we know that if is a minimal geodesic or if is a maximal geodesic.
The last step in this section is to look at the properties of the length of a geodesic . However, for our very general systems of undirected and directed networks, continuous space and continuous spacetimes, we need a weaker definition of distances as compared to the formal definitions of distance in Definition A.1 and metric in Definition A.2. So we will first define a GENERALISED DISTANCE before showing that the length of any geodesic between two points gives satisfies this weaker definition of “distance”.
A GENERALISED DISTANCE is a map d from any two connected points to real values that satisfies the following axioms.
Definition A.11. A GENERALISED DISTANCE from point to a point that is connected to , , is a function which obeys
Formally, the set of connected pairs is . Note that the value of a generalised distance from to is not defined if the points are not connected in that direction , if there is no path from to . Also, a generalised distance need not be symmetric; it may be defined in one direction but not the other or it may have two different values so that .
In the same way, we can add some sort of triangle identity to those of a generalised distance in Definition A.11 to get what we call a GENERALISED METRIC, a map from connected pairs of points to real numbers that satisfies the following axioms
From the definition of a geodesic, all geodesics between two given points have the same length.
It may be useful to extend the definition in some circumstances to give values when x and y are not connected but we do not use that option here.
Definition A.12. A GENERALISED METRIC is a function of a pair of connected points, , which obeys the following axioms
or
Again, for any given generalised metric the function either satisfies the triangle identity (A.11c) for every pair of connected points, or it always satisfies the reverse triangle identity (A.11d) for every pair of connected points. Note we do not necessarily have symmetry so this is not a distance in the standard sense of Definition A.1. So even if has a value, may not be defined or it can have a different value. The additivity property of path length functions (A.5) is also not carried over but is replaced by the triangle inequalities (A.11c) or (A.11d) as we shall show.
Lemma A.7. The length of any geodesic is a GENERALISED METRIC .
Note that the length function L must be the same path-length function used to define the geodesics in Definition A.9.
Proof. First we note that geodesics exist if and only there is a path from x to y. So the length of a geodesic has the correct domain and codomain needed for a generalised distance function.
Next, the axioms of a length function in Definition A.8 include all the properties required by a generalised distance as defined in Definition A.11.
Finally, the extremal properties of the lengths of geodesics that are the core of the definition of a geodesic in Definition A.9 ensure that they obey a triangle or reverse triangle inequality as noted in Lemma A.5.
A.3 Order, sets, distance and metrics
Our work is with directed acyclic graphs, so we need to generalise the concepts of distance and metric further to take account of situations where there is an order inherent in the network. As before, we can extend these ideas to continuous spaces by defining an edge to exist whenever there is a curve from one point to another in a continuous space. Minkowski spacetime then provides the best known reference point and test case for these concepts. First, we start with a reminder of how order in a set is described.
A.3.1 Generic Partial Orders
A PARTIAL ORDER on a set (sometimes called the GROUND SET of the poset) is a binary relation which satisfies three conditions:
where these hold for any . The ground set and the binary relations obeying (A.12) together form a PARTIALLY ORDERED SET or POSET which we can denote as . Note that is an alternative notation for .
It will be useful sometimes to define a related relationship between two objects in the set, , which is the same as the binary relation of a partial order except that we exclude the reflexive case where . That is
Again, means the same as .
A.3.2 Partial Orders in this Paper
In this paper we have two partial orders. We use the symbol for the partial order defined on points in using the cube spacetime rule of (B.1a) and we use the symbol for the partial order on nodes of a DAG defined by the existence of a path from one node to another. That is
In Section A.2 we used to indicate that a path exists from to so both our binary relations in this section, and , also imply . We have changed the notation to emphasise the fact that reachability when there are no cycles has additional implications. In particular, one can show that the cubespace rule of (B.1a) and node reachability in a DAG always satisfy the criteria (A.12) for a partial order relation whereas in the previous section our reachability relation need not.
A.3.3 Ordered distance and metrics
In our work with directed acyclic graphs, we need to define weaker versions of the standard mathematical concepts of distance and metric that can work with spaces with order, what we call spacetimes. These concepts will also be useful where working with continuous spacetimes such as Minkowski spacetime and de Sitter spacetime.
An ORDERED DISTANCE between any two points in a partially order set satisfies
Note that for any pair of points with no order, that is , then an ordered distance is not defined . This means that for any pair of points either or is not defined or both are not defined.
We can have two types of ordered metrics. An ORDERED METRIC is an ordered distance that satisfies a ORDERED TRIANGLE IDENTITY
A different approach is used for Lorentzian length spaces as defined by Kunzinger and Sämann (2018). There, in Definition 2.8, they work with “time separation function” which plays the role of our ordered distance . A time separation function is also defined in terms of operators providing an order such that its is real and positive when (in our notation) but set to zero when . Note that this second case contains both and cases. So the difference with our definition is for the unconnected pairs of points (space-like separated), we leave that case as “undefined” while it is zero for a time separation function. It seems likely that assigning a real value for pairs of points with no direct connection is a matter of convenience since the lack of direct connection means one might not expect there to be a natural distance. We prefer to keep the value for such connected pairs to be undefined so as to be as general as possible.
This is weaker than the usual triangle identity for a normal metric since in this case the inequality only needs to hold for one permutation of the points , and . For instance we do not need to have any relation to .
An ORDERED REVERSE METRIC is an ordered distance that satisfies the REVERSE ORDERED TRIANGLE IDENTITY
Again, note the order of the points is important.
Finally, whenever we have an ordered metric, we can always define a ORDERED GEODESIC from point to point to be a set of points which satisfy the equality of the relevant ordered triangle inequality (A.16) or (A.17), that is
Following this nomenclature, we should refer to minimal ordered geodesics and maximal ordered geodesics depending on the type of ordered triangle identity satisfied by the geodesics.
A.3.4 Proper Time
In relativity, a common notation and choice of coordinates for a point in spacetime is where the zero-th coordinate is the time and the remaining coordinates are the spatial coordinates. A useful measure of the separation of points and is given by the proper-time provided there is a causal connection between the two point . The general form for the proper-time along a path is found by integrating the infinitesimal form
Here the matrix is the METRIC TENSOR and this encodes information about the curvature of the spacetime. One of the most important properties of proper time is that it is invariant under the symmetries of the space. That is all observers agree on the same value of proper time for two points (spacetime events) x and y and this means they all agree that the physical outcomes are the same.
The simplest example is Minkowski spacetime, which has no curvature but maximal symmetry (it is homogeneous and isotropic, so distances between pairs of points are unchanged by rotations or translations) in which case we can choose coordinates and conventions such that
Then the proper time separation between two points and in Minkowski spacetime is given by a formula for the square . For standard coordinates this is
This defines a partial-order where indicates that light or some massive particle can travel from to . In our work, the use of the indiscernible axiom in our definitions means we would exclude the null paths, paths of zero proper-time length, when defining the binary relation of our poset.
Confusingly, in much of the literature on relativity, this name is often shorten to just the “metric”. However is not a metric in the sense defined in (A.2) and so we will call the “metric tensor”.
Note that the minus sign on the spatial components for leads to the result that means that is only non-negative when no physical particle can travel between the two points. Further, by convention, when points are connected we always define the proper time difference to be the positive square root so . Otherwise this formula can give negative and imaginary values for . So clearly, the standard definition of distance (A.1) with its non-negative values cannot apply here.
While proper time may not be a distance (A.1) or a metric (A.2), we can use proper time when there is a path for a massive free particle to move from x to y, when they are causally connected to define what we call here an ordered distance satisfying (A.15) for these relativistic (Lorentzian) spaces where
B The -cube spacetime model
We work with Minkowski distance in the context of our -cube spacetime models where there is a cutoff in the length of any edge in terms of the distance as measured using Minkowski distance. Since we prefer to compare results for networks with the same average degree, similar density of edges, we need an expression for the degree in terms of this cutoff . So the aim here is to find the volume of the forward connection kernel of any point in -dimensional -cube spacetime.
The forward connection kernels for the various values are shown in Fig. B.1.
Our use of the indiscernibles condition means we are excluding null paths here, paths followed by massless particles.

(a)

(b)
Figure B.1: For the -cube model in two dimensions, the node at the origin (red star) can only connect to nodes in the forward connection kernel with unit cutoff, . One boundary of the forward connection kernel is given by the edge of the unit balls and these are shown in colour for various . The thick black lines show the other two sides of the boundary of the forward connection kernel, and and these are same for all . On the left we show positive values which illustrates that the region containing connected points has a finite area. For negative , we see the area is always infinite, which mimics the size of the future region (forward light cone) in Minkowski space even when bounded by an upper limit on proper-time as this is also infinite. Also note that the curvature of the unit ball, as viewed from the origin, is convex for and concave for .
B.1 Volume of Forward Connection Kernel in -cube spacetime
For the boundaries of the forward connection kernel of the point at the origin with a length cutoff are
where the first constraint comes from the cube-space rule and the second from the length cutoff. Therefore we have that and
By dimensions we know that so we work in terms of the variable Y where
This gives
We recognise the integral as the Beta function
Thus
We have that , so that iterating we have that
For instance, in D = 2 dimensions we have that
which gives (using , , )
as is well known for the first two cases.
Negative . For , the volume of the forward connection kernel is infinite. However, we are interested in the expected degree in intervals. So a measure of that is to look at the expected out-degree of the source node of our unit hypercubes :
Here the the Heaviside function which is one (zero) for positive (negative) x.
In our work we are interested in the case where p = -1 and D = 2. For these values, the boundary of the allowed region satisfies
This curve intersects the upper boundary of our unit square at , which lies inside the unit square only for . Hence, for , the allowed area gives us
For , the whole unit square satisfies the cutoff and . Therefore
References
AlMuhanna, H. and Evans, T. S. (2026), 'Data and code for "a geometric principle for path selection in directed acyclic graphs"'.
URL: https://doi.org/10.6084/m9.figshare.34024839
AlMuhanna, H., Vasiliauskaite, V. and Evans, T. S. (2026), 'Interdisciplinarity revealed by transitive reduction of citation networks', Scientific Reports.
Bollobás, B. and Brightwell, G. (1991), 'Box-spaces and random partial orders', Transactions of the American Mathematical Society 324, 59–72.
Bombelli, L., Lee, J., Meyer, D. and Sorkin, R. D. (1987), 'Space-time as a causal set', Phys. Rev. Lett. 59, 521–524.
Bordes, A., Usunier, N., Garcia-Duran, A., Weston, J. and Yakhnenko, O. (2013), Translating embeddings for modeling multi-relational data, in 'Advances in Neural Information Processing Systems', Vol. 26.
Brightwell, G. and Gregory, R. (1991), 'Structure of random discrete spacetime', Phys. Rev. Lett. 66, 260–263.
Clough, J. and Evans, T. (2016), 'What is the dimension of citation space?', Physica A 448, 235–247.
Clough, J. R. and Evans, T. S. (2017), 'Embedding graphs in Lorentzian spacetime', PLOS ONE 12(11), e0187301.
Clough, J. R., Gollings, J., Loach, T. V. and Evans, T. S. (2014), 'Transitive reduction of citation networks', Journal of Complex Networks.
Coffman, E. G. and Graham, R. L. (1972), 'Optimal scheduling for two-processor systems', Acta Informatica 1(3), 200–213.
Coscia, M. (2021), The Atlas for the Aspiring Network Scientist, Michele Coscia. URL: https://www.networkatlas.eu/files/sna_book.pdf
Dall, J. and Christensen, M. (2002), 'Random geometric graphs', Physical Review E 66, 016121.
Deza, M. M. and Deza, E. (2009), Encyclopedia of distances, in 'Encyclopedia of distances', Springer, pp. 1–583.
Dowker, F. (2005), Causal sets and the deep structure of spacetime, in Ashtekar, A., ed., '100 years of relativity', pp. 445–464.
Dowker, F. (2006), 'Causal sets as discrete spacetime', Contemporary Physics 47(1), 1–9.
Evans, T., Calmon, L. and Vasiliauskaite, V. (2020), 'The longest path in the price model', Scientific Reports 10(1), 10503.
Evans, T. S. (2025), From signed networks to group graphs, arXiv:2505.22802.
Evans, T. S. and Saramäki, J. P. (2005), 'Scale free networks from self-organisation', Phys Rev E 72, 026138. Imperial/TP/041102 cond-mat/0411390.
Gilbert, E. N. (1961), 'Random plane networks', Journal of the Society for Industrial and Applied Mathematics 9(4), 533–543.
Goldberg, S., Anthony, H. and Evans, T. (2015), ‘Modelling citation networks’, Scientometrics 105(3), 1577–1604.
Hardy, G. H., Littlewood, J. E. and Pólya, G. (1952), Inequalities, 2 edn, Cambridge University Press.
Ho, M., Price, H. C., Evans, T. S. and O'Sullivan, E. (2024a), 'Who made the mRNA vaccine? Measuring Division of Labour in Therapeutic Innovation', Nature Biotechnology 42, 1643–1648.
Ho, M., Price, H. C., Evans, T. S. and O'Sullivan, E. (2025), 'Enhancing foresight models with network science: Measuring innovation feedbacks within the chain-linked model', Technological Forecasting and Social Change 213, 124010.
Ho, M., Price, H., Evans, T. and O'Sullivan, E. (2024b), 'Dynamics of technology emergence in innovation networks.', Sci Rep 14, 1411.
Hoff, P. D., Raftery, A. E. and Handcock, M. S. (2002), ‘Latent space approaches to social network analysis’, Journal of the American Statistical Association 97(460), 1090–1098.
Hummon, N. P. and Doreian, P. (1989), ‘Connectivity in a citation network: The development of dna theory’, Social Networks 11(1), 39–63.
Kelley, J. E. and Walker, M. R. (1959), Critical-path planning and scheduling, in ‘Papers presented at the December 1-3, 1959, eastern joint IRE-AIEE-ACM computer conference on - IRE-AIEE-ACM '59 (Eastern)', ACM Press, pp. 160–173.
Krapivsky, P. L. and Redner, S. (2005), 'Network growth by copying', Physical Review E 71, 036118.
Krioukov, D., Papadopoulos, F., Kitsak, M., Vahdat, A. and Boguná, M. (2010), ‘Hyperbolic geometry of complex networks’, Phys. Rev. E 82(3), 036106.
Kumar, R., Raghavan, P., Rajagopalan, S., Sivakumar, D., Tomkins, A. and Upfal, E. (2000), Stochastic models for the web graph, in ‘Proceedings of the 41st Annual Symposium on Foundations of Computer Science (FOCS)’.
Kunzinger, M. and Sämann, C. (2018), ‘Lorentzian length spaces’, Annals of Global Analysis and Geometry 54, 399–447.
Levy, F. K., Thompson, G. L. and Wiest, J. D. (1963a), ‘The abcs of the critical path method’, Harvard Business Review.
Levy, F., Thompson, G. and Wiest, J. (1963b), ‘Mathematical basis of the critical path method’, Industrial Scheduling pp. 366–378.
Mikolov, T., Sutskever, I., Chen, K., Corrado, G. and Dean, J. (2013), Distributed representations of words and phrases and their compositionality, in ‘Advances in Neural Information Processing Systems’, Vol. 26.
Myrheim, J. (1978), Statistical geometry, 1978, Technical report, CERN preprint TH-2538.
Nickel, M. and Kiela, D. (2017), Poincaré embeddings for learning hierarchical representations, in ‘Advances in Neural Information Processing Systems’, Vol. 30, pp. 6338–6347.
Pandey, P. K., Singh, M., Goyal, P., Mukherjee, A. and Chakrabarti, S. (2020), 'Analysis of reference and citation copying in evolving bibliographic networks', Journal of Informetrics 14(1), 101003.
Penrose, M. (2003), Random Geometric Graphs, OUP.
Price, D. S. (1965), 'Networks of scientific papers', Science 149, 510–515.
Price, D. S. (1976), ‘A general theory of bibliometric and other cumulative advantage processes’, J. Amer. Soc. Inform. Sci. 27(5), 292–306.
Price, H. and Evans, T. (2025), Understanding main path analysis, arXiv:2512.12355.
Redner, S. (1998), 'How popular is your paper? an empirical study of the citation distribution', The European Physical Journal B 4(2), 131–134.
Rideout, D. and Wallden, P. (2009), ‘Spacelike distance from discrete causal order’, Classical and Quantum Gravity 26(15), 155013-.
Sáez de Ocariz Borde, H., Kratsios, A., Law, M. T., Dong, X. and Bronstein, M. (2025), Neural spacetimes for dag representation learning, in Y. Yue, A. Garg, N. Peng, F. Sha and R. Yu, eds, 'International Conference on Learning Representations', Vol. 2025, pp. 56302–56341.
Simkin, M. V. and Roychowdhury, V. P. (2005), ‘Copied citations create renowned papers?’, Annals of Improbable Research 11, 24–27.
Surya, S. (2019), ‘The causal set approach to quantum gravity’, Living Reviews in Relativity 22(1).
Vazquez, A. (2001), ‘Disordered networks generated by recursive searches’, Europhysics Letters (EPL) 54(4), 430–435.
ΩSubelj et al.
Šubelj, L., Waltman, L., Traag, V. and van Eck, N. J. (2020), ‘Intermediacy of publications’, Royal Society Open Science 7(1), 190207.