FigureΒ 10.1.1 is an example of a graph. We have labeled the vertices with\(v_1, v_2, v_3, v_4\) and the edges with \(e_1, e_2, e_3, e_4, e_5\text{.}\)
A graph, \(G\text{,}\) consists of a finite set, \(V(G)\text{,}\) of vertices and a finite set, \(E(G)\text{,}\) of edges. Each edge is assocated with two vertices (it may be the same vertex) called endpoints.
In the above example, FigureΒ 10.1.1, \(V(G)=\{v_1, v_2, v_3, v_4\}, E(G)=\{e_1, e_2, e_3, e_4, e_5\}\text{.}\) The endpoints of edge \(e_1\) are \(v_1, v_2\text{.}\)
Two vertices connected by an edge are called adjacent. For example, in FigureΒ 10.1.1\(v_2\) is adjacent to \(v_3\text{,}\) but \(v_3\) is not adjacent to \(v_4\text{.}\)
Two edges that are incident on the same vertex are adjacent. For example, in FigureΒ 10.1.1\(e_1\) and \(e_2\) are adjacent, but \(e_2\) and \(e_5\) are not adjacent.
A directed graph or digraph consists of a set of vertices, \(V(G)\) and directed edges (arrows), \(D(G)\text{,}\) where each edge is associated with an ordered pair of of vertices called endpoints, \((v, w)\text{.}\)
We saw directed graphs in SectionΒ 8.1 and SectionΒ 8.2. For example, see FigureΒ 8.1.10. In this example, we have an edge with endpoints \((1, 2)\text{,}\) but not \((2, 1)\text{.}\)
Really, the vertices of a graph represent a set, while the edges represent relationships between elements of that set. There are lots of examples of graphs as representations of relationships or networks. For example, graphs are used to represent communications systems, flight patterns, and friendship networks. Graphs can even be used to find strategies in games such as sudoku.
A complete graph on \(n\) vertices, \(K_n\text{,}\) is a simple graph with \(n\) vertices whose set of edges contains exactly one edge for every pair of vertices.
Let \(m, n\in \mathbb{Z}^{+}\text{.}\) A complete bipartite graph on \((m, n)\) vertices, \(K_{m, n}\text{,}\) is a simple graph with vertices \(v_1, v_2, \ldots, v_m\) and \(w_1, w_2, \ldots w_n\text{,}\) such that
there is an edge from \(v_i\) to \(w_j\) for all \(i=1, \ldots, m\) and \(j=1, \ldots n\text{;}\)
A graph \(H\) is a subgraph of \(G\) if every vertex in \(H\) is also a vertex in \(G\text{,}\) and every edge in \(H\) is also an edge in \(G\) such that the edges in \(H\) have the same endpoints as in \(G\text{.}\)
The degree of a vertex \(v\text{,}\)\(\text{deg}(v)\text{,}\) is the number of edges incident on \(v\text{.}\) Loops are counted twice. The total degree of a graph \(G\) is the sum of the degrees of all vertices in \(G\text{.}\)
We will not provide a formal proof, but the theorem is not hard to show as each edge must be incident on two vertices. Thus, each edge is counted twice in the total degree.
Draw the graph given by the following information: Graph \(H\) has vertex set \(\{v_1, v_2, v_3, v_4, v_5\}\) and edge set \(\{e_1, e_2, e_3, e_4\}\) with edge-endpoint function given by the table.
Show that the two drawings represent the same graph by labeling the vertices and edges of the right-hand drawing to correspond to those of the left-hand drawing.
Show that the two drawings represent the same graph by labeling the vertices and edges of the right-hand drawing to correspond to those of the left-hand drawing.