|
GraphDom
|
We want readers of this page not to misunderstand the reason for its existence: the aim is not to "rewrite" graph theory, but to use a mathematical model with terminology consistent with the nomenclature of the library entities.
Therefore, many of the terms you'll find in this library will have slightly different meanings than those you've probably already learned.
The following definitions may at first glance seem overly complex compared to those you've probably already encountered in graph theory (especially that of a graph vertex), but we assure you that everything will become clear once you read the code documentation.
\( G \) is a graph if and only if \( G \) is an ordered 8-tuple that satisfies all of the following conditions:
Let \( A \) be the set of all lowercase English letters.
Let \( V \) such that \( V = \{ (a,0) , (b,0) , (c,0) , (d,0) , (e,0) , (f,0) , (g,0) \} \).
Let \( E_\text{di} = \{ ( (a,0) , (b,0) ) , ( (c,0) , (a,0) ) , ( (a,0) , (d,0) ) , ( (d,0) , (a,0) ) , ( (d,0) , (d,0) ) , ( (e,0) , (e,0) ), ( (a,0) , (f,0) ) \} \).
Let \( E_\text{un} = \{ \{ (c,0) \}, \{ (a,0) , (e,0) \} , \{ (e,0) \} , \{ (a,0) , (f,0) \} \} \).
Let \( f \) such that \( f : \emptyset \to \emptyset \).
Let \( G \) such that \( G = ( A , V , E_\text{di} , E_\text{un} , \emptyset , f , \emptyset , f ) \).
\( G \) is a graph.
The following is a graphical visualization of \( G \).
Let \( G \) be a graph with \( G = ( V_\text{type} , V , E_\text{di} , E_\text{un} , C_{l_V} , l_V , C_{l_E} , l_E ) \).
\( v \) is a vertex of \( G \) if and only if \( v \in V \).
Let \( G \) be a graph with \( G = ( V_\text{type} , V , E_\text{di} , E_\text{un} , C_{l_V} , l_V , C_{l_E} , l_E ) \).
For each vertex \( v \) of \( G \) such that \( v = ( x , n ) \), \( x \) is the core of \( v \).
Let \( G \) be a graph with \( G = ( V_\text{type} , V , E_\text{di} , E_\text{un} , C_{l_V} , l_V , C_{l_E} , l_E ) \).
For each vertex \( v \) of \( G \) such that \( v = ( x , n ) \), the multiplicity of \( v \) with respect to \( G \) is the number of vertices of \( G \) that have \( x \) as their cores , including \( v \) in the count.
( i.e., more formally, \( | \{ w | w \in V \wedge \exists m | w = ( x , m ) \} | \) ).
Let \( G \) be a graph with \( G = ( V_\text{type} , V , E_\text{di} , E_\text{un} , C_{l_V} , l_V , C_{l_E} , l_E ) \).
\( y \) is an edge of \( G \) if and only if \( y \in E_\text{di} \cup E_\text{un} \).
Let \( G \) be a graph with \( G = ( V_\text{type} , V , E_\text{di} , E_\text{un} , C_{l_V} , l_V , C_{l_E} , l_E ) \).
\( d \) is a directed edge of \( G \) if and only if \( d \in E_\text{di} \).
Let \( G \) be a graph with \( G = ( V_\text{type} , V , E_\text{di} , E_\text{un} , C_{l_V} , l_V , C_{l_E} , l_E ) \).
\( u \) is an undirected edge of \( G \) if and only if \( u \in E_\text{un} \).
Let \( G \) be a graph.
Let \( d \) be a directed edge of \( G \).
\( t \) is the tail of \( d \) if and only if \( d = ( t , h )\).
Let \( G \) be a graph.
Let \( d \) be a directed edge of \( G \).
\( h \) is the head of \( d \) if and only if \( d = ( t , h )\).
Let \( G \) be a graph.
Let \( y \) be an edge of \( G \).
\( a \) is an endpoint of \( y \) if and only if \( y \) satisfies one of the following conditions:
Let \( G \) be a graph with \( G = ( V_\text{type} , V , E_\text{di} , E_\text{un} , C_{l_V} , l_V , C_{l_E} , l_E ) \) .
Let \( v \) be a vertex of \( G \).
\( y \) is an out-edge of \( v \) with respect to \( G \) if and only if \( y \) satisfies one of the following conditions:
Let \( G \) be a graph.
Let \( v \) be a vertex of \( G \).
\( y \) is an undirected out-edge of \( v \) with respect to \( G \) if and only if \( y \) satisfies all the following conditions:
Let \( G \) be a graph.
Let \( v \) be a vertex of \( G \).
\( y \) is a directed out-edge of \( v \) with respect to \( G \) if and only if \( y \) satisfies all the following conditions:
\( G \) is a set graph if and only if \( G \) is a graph and the multiplicity of any vertex of \( G \) (with respect to \( G \)) is equal to \( 1 \).
\( G \) is a multiset graph if and only if \( G \) is a graph and exists (at least one) \( v \) such that \( v \) is a vertex of G and the multiplicity of \( v \) (with respect to \( G \)) is strictly greater than \( 1 \) .
\( G \) is a mixed graph if and only if \( G \) satisfies all the following conditions:
\( G \) is a non-mixed graph if and only if \( G \) satisfies all the following conditions:
\( G \) is a digraph if and only if \( G \) is a graph and there is no undirected edge of \( G \).
\( G \) is a ugraph if and only if \( G \) is a graph and there is no directed edge of \( G \).
\( G \) is a labeled-edge graph if and only if \( G \) satisfies all the following conditions:
Let \( G \) be a labeled-edge graph with \( G = ( V_\text{type} , V , E_\text{di} , E_\text{un} , C_{l_V} , l_V , C_{l_E} , l_E ) \) ( \( C_{l_E} \neq \emptyset \) ).
If \( y \) is an edge of \( G \), then \( l_E(y) \) is the label of \( y \) with respect to \( G \).
\( G \) is a labeled-vertex graph if and only if \( G \) satisfies all the following conditions:
Let \( G \) be a labeled-vertex graph with \( G = ( V_\text{type} , V , E_\text{di} , E_\text{un} , C_{l_V} , l_V , C_{l_E} , l_E ) \) ( \( C_{l_V} \neq \emptyset \) ).
If \( v \) is a vertex of \( G \), then \( l_V(v) \) is the label of \( v \) with respect to \( G \).
\( G \) is a full labeled graph if and only if \( G \) satisfies all the following conditions:
\( G \) is a unlabeled graph if and only if \( G \) satisfies all the following conditions: