Rooted graph

Source: Wikipedia, the free encyclopedia.

In

undirected
versions of rooted graphs have been studied, and there are also variant definitions that allow multiple roots.

Rooted graphs may also be known (depending on their application) as pointed graphs or flow graphs. In some of the applications of these graphs, there is an additional requirement that the whole graph be reachable from the root vertex.

Variations

In

random graphs.[4] These graphs are also called multiply rooted graphs.[5]

The terms rooted directed graph or rooted digraph also see variation in definitions. The obvious transplant is to consider a digraph rooted by identifying a particular node as root.[6][7] However, in computer science, these terms commonly refer to a narrower notion; namely, a rooted directed graph is a digraph with a distinguished node r, such that there is a directed path from r to any node other than r.[8][9][10][11] Authors who give the more general definition may refer to graphs meeting the narrower definition as connected rooted digraphs[6] or accessible rooted graphs (see § Set theory).

connected digraph.[12]

Applications

Flow graphs

In

sink) vertex.[14]

Flow graphs may be viewed as

The general notion of flow graph has been called program graph,[19] but the same term has also been used to denote only control-flow graphs.[20] Flow graphs have also been called unlabeled flowgraphs[21] and proper flowgraphs.[15] These graphs are sometimes used in software testing.[15][18]

When required to have a single exit, flow graphs have two properties not shared with directed graphs in general: flow graphs can be nested, which is the equivalent of a subroutine call (although there is no notion of passing parameters), and flow graphs can also be sequenced, which is the equivalent of sequential execution of two pieces of code.[22] Prime flow graphs are defined as flow graphs that cannot be decomposed via nesting or sequencing using a chosen pattern of subgraphs, for example the primitives of structured programming.[23] Theoretical research has been done on determining, for example, the proportion of prime flow graphs given a chosen set of graphs.[24]

Set theory

Peter Aczel has used rooted directed graphs such that every node is reachable from the root (which he calls accessible pointed graphs) to formulate Aczel's anti-foundation axiom in non-well-founded set theory. In this context, each vertex of an accessible pointed graph models a (non-well-founded) set within Aczel's (non-well-founded) set theory, and an arc from a vertex v to a vertex w models that v is an element of w. Aczel's anti-foundation axiom states that every accessible pointed graph models a family of (non-well-founded) sets in this way.[25]

Combinatorial game theory

Given a purely[

directed cycles, then a position in the game could repeat infinitely many times, and rules are usually needed to prevent the game from continuing indefinitely. Otherwise, the graph is a directed acyclic graph, and if it isn't a rooted tree, then the game has transpositions. This graph and its topology are important in the study of game complexity, where the state-space complexity is the number of vertices in the graph, the average game length is the average number of vertices traversed from the root to a vertex with no direct successors, and the average branching factor of a game tree is the average outdegree
of the graph.

Combinatorial enumeration

The number of rooted undirected graphs for 1, 2, ... nodes is 1, 2, 6, 20, 90, 544, ... (sequence A000666 in the OEIS).

Related concepts

A special case of interest are

rooted trees, the trees with a distinguished root vertex. If the directed paths from the root in the rooted digraph are additionally restricted to be unique, then the notion obtained is that of (rooted) arborescence—the directed-graph equivalent of a rooted tree.[7] A rooted graph contains an arborescence with the same root if and only if the whole graph can be reached from the root, and computer scientists have studied algorithmic problems of finding optimal arborescences.[26]

Rooted graphs may be combined using the rooted product of graphs.[27]

See also

References

  1. . See p. 454.
  2. ^ Harary (1955, p. 455).
  3. ^ , In this context a rooted digraph Δ = (V,E,r) is called connected (or 1-connected) if there is a directed path from the root to every vertex. See in particular p. 307.
  4. ^ , A rooted subdigraph F is a rooted arborescence if the root vertex ∗ is in F and, for every vertex v in F, there is a unique directed path in F from ∗ to v. Thus, rooted arborescences in digraphs correspond to rooted trees in undirected graphs.
  5. , A rooted directed graph or a flow graph G = (V, A, r) is a directed graph with a distinguished vertex r such that there is a directed path in G from r to every vertex v in Vr.. See in particular p. 122.
  6. , A rooted digraph is a triple G=(V,E,r) where (V ∪ {r}, E) is a digraph and r is a specified vertex called the root such that there exists a path from r to every vertex of V.. See in particular p. 524.
  7. , A rooted digraph is a connected digraph with a single root node that is the ancestor of every other node in the digraph.
  8. , It is said to be rooted if there is at least one root, that is, at least one vertex R such that there is an oriented path from V to R for all VR.
  9. ^ Gross, Yellen & Zhang (2013, p. 1372).
  10. .
  11. ^
  12. ^
  13. ^ Fenton & Hill (1993, p. 323).
  14. ^ Fenton & Hill (1993, p. 339).
  15. S2CID 10313545
  16. MR 0940014, archived from the original
    (PDF) on 2015-03-26
  17. .

Further reading

External links