2. Essential Graph Theory
A
set is a collection of definite and distinguishable objects [
3,
8]. Each object in a set is an
element or a
member of the set. It is taken for granted that if
X is a given set then there is a well-formed definition that decides conclusively whether or not two given elements of
X are distinct. Wherever necessary, such a definition is made explicit. There is a unique set that contains no members, and this is the
empty set, denoted by
.
The cardinality (or, size) of a set X is the number of elements in X, and is denoted by . Obviously . If then X is a finite set; else X is an infinite set.
The set of all the subsets of a set
X, including the empty set
and the set
X itself, is denoted by
and is the
power set of
X. If
X is finite of cardinality
n then
is finite [
3,
8] of cardinality
. The set
denotes the set of all nonempty subsets of
X.
A simple graph G is a pair where:
(i) V is a finite set, each element of which is called a vertex of G and
(ii) E is a finite set, each element of which is a nonempty subset X of V such that and is called an edge of G.
If G is a simple graph then neither V nor E can have any repeated elements. V is the vertex set of G and E is the edge set of G. is possible, which necessiates , but the converse is not true.
The expressions and will both mean x is a vertex of G. The expression will mean is an edge of G where and .
The order of G is denoted by and is defined to be the number of vertices in G. Obviously, . The girth of G is the number of edges in G and is denoted by or by e as convenient, providing no ambiguity arises.
Two distinct vertices x and y of G are adjacent in G if . If then x and y are nonadjacent. The vertex x is self-adjacent if . G is loop-free if it has no self-adjacent vertex (meaning, whenever ).
By the above definitions, if
is a simple loop-free graph of order
n, it is immediate that the girth of
G cannot exceed
[
6].
Let . The neighbourhood of x in G is denoted by or , and is defined to be the set of all such that y is adjacent to x in G. The non-negative integer is the degree of x in G, and is denoted by or .
All graphs considered in this article are assumed simple and loop-free with positive orders.
A graph is a subgraph of a graph if (i) and (ii) . In this case J is said to be contained in G or G is said to contain J. J is a proper subgraph of G if J is a subgraph of G with either or . If J is a subgraph of G such that then J is a spanning subgraph of G.
Let S be a nonempty subset of V - i.e., . The subgraph of G induced by S is denoted by and is defined to be the graph where is the set of all the edges such that and . The order of is (obviously) . For convenience, we will denote the girth of by (rather than ) in the coming discussions. In particular, if then will be denoted by . In this case where e is the girth of G.
Two graphs
and
are
isomorphic if there exists a bijection [
6]
with the property that
x and
y are adjacent vertices in
if and only if
and
are adjacent vertices in
. In this case the graph-theoretic properties of
are exactly those of
, and vice-versa.
Let be a graph. In Subsection 2.1 through Subsecion 2.3, we define coteries of G based on specific graph theoretic properties possessed (or not) by subsets of V. For the remainder of this section, assume and .
2.1. Connect Coteries
A path in G is a sequence of k distinct vertices of G such that and for each . Such a sequence is also called a path between and . G is a connected graph if there is a path between x and y whenever x and y are distinct vertices of G. A graph that is not connected is disconnected. A graph of order 1 is assumed connected.
The set of all such that the induced subgraph is connected will be called the connect coterie of G, and will be denoted by .
The set of all such that is disconnected will be called the disconnect coterie of G, and will be denoted by .
Clearly and .
Either of and will be called a Λ coterie of G. These two coteries together will be referred to as the pair of antithetic Λ coteries (of G).
2.2. Euler Coteries
G is an
Eulerian graph[
6] if
is even for each vertex
x of
G.
The set of all such that is an Eulerian graph will be called the Euler coterie of G, and will be denoted by .
The set of all such that is not an Eulerian graph will be called the non-Euler coterie of G, and will be denoted by .
Obviously and .
Either of and will be called an coterie of G. These two coteries together will be referred to as the pair of antithetic coteries (of G).
2.3. Clique Coteries
A nonempty subset M of V is a clique of G if either (i) and the vertices of M are pairwise adjacent in G or (ii) . G is a complete graph if V is a clique of G.
The set of all such that S is a clique of G (i.e., the is a complete graph) will be called the clique coterie of G, and will be denoted by .
The set of all such that S is not a clique of G will be called the non-clique coterie of G, and will be denoted by .
It is immediate that and .
Either of and will be called a Ω coterie of G. These two coteries together will be referred to as the pair of antithetic Ω coteries (of G).
2.4. On Cardinalities Of Graph Coteries
Proposition 2.1. Given a graph
G of positive order, at least one coterie in each of the pairs of antithetic coteries (of
G) seen in
Section 2.1 through 2.3 exists.
Proof. It suffices to prove the statement for the pair of antithetic coteries of G; a similar reasoning applies to each of the other pairs of antithetic coteries.
The conclusion holds since from the definitions of the coteries (Subsection 2.1.). •
Proposition 2.2. Let have order n. Then:
(i) Either or .
(ii) Either or .
(iii) Either or .
Proof. It suffices to prove (i); a similar reasoning applies to each of (ii) and (iii). By the defintions in Subsection 2.1, we have . Then either or .
Next, , whereas and . Then (i) follows immediately. •
Proposition 2.3. The cardinality of one coterie exceeds that of the other. A similar conclusion holds for each of the other two pairs of antithetic coteries
Proof.
, an odd positive integer. Then . •
2.5. Superior Coteries
Of the two coteries of G, the one with the larger cardinality (see Proposition 2.2 and Proposition 2.3) will be called the superior Λ coterie. A similar definition applies to each of the other types of coteries.
5. Algorithm to Show Problem is in NP
The following algorithm will be referred to as -in-NP. The input is . G and n, as well as the decision question, the certificate candidate and the possible outputs, are given in Subsection 4.2.
Algorithm -in-NP
BEGIN
1. if
2. then print “YES, exists a major coterie of G” and STOP
3. else print “NO, such a graph has no coteries” and STOP
4. endif
STOP
Proposition 5.1. The algorithm -in-NP is feasible and correct.
Proof. Line 1 of the algorithm checks if . This check clearly terminates in a finite number of steps.
The possible outputs are all accounted for in two lines - line 2 and line 3. So the algorithm returns only finitely many outputs. Printing each decision clearly terminates in a finite number of steps. Consequently, -in-NP is feasible.
Next, we assert its correctness. If , then the algorithm decides YES. This is correct by Proposition 2.1.
If , then the algorithm decides NO. This output is correct since a graph of such an order n has no vertices and hence no coteries at all. •
Proposition 5.2. Given an input , -in-NP runs in polynomial time in n.
Proof. The total number (say, ) of steps executed by the algorithm -in-NP is the sum of the numbers of steps for all the lines executed. Suppose that one execution of the line j requires steps and that this line is executed exactly times when the algorithm is executed once. Then is the number of steps consumed by the line j in one execution of the algorithm.
In one execution of the algorithm, each line is executed once if at all. Hence, for , .
We suppose each endif line takes constant time, independent of n.
The number of steps required for line 1 is at most . Likewise for lines 2 and 3. Hence . •
Proposition 5.3. To each instance G of Problem there is a certificate that is verified by -in-NP in polynomial time in the size (n) of G.
Proof. is the required certificate.
Proposition 5.4. Suppose replacements are done in the name and line 2 of the algorithm -in-NP to obtain two other algorithms as folllows:
(i) is replaced by to get an algorithm named Algorithm -in-NP.
(ii) is replaced by to get Algorithm -in-NP.
Then, like -in-NP, each of the resulting algorithms in (i) and (ii) above satisfies the propositions 5.1 through 5.3.
Proof. Straightforward. •