Graph theory Flashcards
What does a graph consist of?
A graph G = (V, E) consists of V, a nonempty set of vertices (or nodes) and E, a set of edges. Each edge has either one or two vertices associated with it, called its endpoints. An edge is said to connect its endpoints.
What is a simple graph?
A graph in which each edge connects two different vertices and where no two edges connect the same pair of vertices is called a simple graph.
What is an directed graph?
A directed graph (or digraph) (V, E) consists of a nonempty set of vertices V and a set of directed edges (or arcs) E. Each directed edge is associated with an ordered pair of vertices. The directed edge associated with the ordered pair (u, v) is said to start at u and end at v.
What does it mean if two graphs are adjacent?
Two vertices u and v in an undirected graph G are called adjacent (or neighbors) in G if u and v are endpoints of one edge e of G. Such an edge e is called incident with the vertices u and v and e is said to connect u and v.
What is a degree of a vertex?
The degree of a vertex in an undirected graph is the number of edges incident with it, except that a loop at a vertex contributes twice to the degree of that vertex. The degree of the vertex v is denoted by deg(v).
What is a vertex of degree zero called?
Isolated.
What is The Handshaking Theorem?
Handshaking theorem states that the sum of degrees of the vertices of a graph is twice the number of edges.
Because of this theorem, the following statement is true: An undirected graph has an even number of vertices of odd degree.
What are in-degrees and out-degrees?
In a directed graph, the in-degree of a vertex v, denoted by deg−(v), is the number of edges with v as their terminal vertex. The out-degree of v, denoted by deg+(v), is the number of edges with v as their initial vertex. Note that a loop at a vertex contributes 1 to both the in-degree and the out-degree of this vertex.
Will the sum of the out-degrees be sam as the in-degrees in a directed graph?
Yes, because each edge has an initial vertex and a terminal vertex, the sum of the in-degrees and the sum of the out-degrees of all vertices in a graph with directed edges are the same. Both of these sums are the number of edges in the graph.
What is a sub-graph?
Sometimes we need only part of a graph to solve a problem. In the graph model for a large network, we can remove the vertices corresponding to the computer centers other than the four of interest, and we can remove all edges incident with a vertex that was removed. When edges and vertices are removed from a graph, without removing endpoints of any remaining edges, a smaller graph is obtained. Such a graph is called a subgraph of the original graph
What dow it mean if two graph are isomorphic?
when two simple graphs are isomorphic, there is a one-to-one correspondence between vertices of the two graphs that preserves the adjacency relationship. Isomorphism of simple graphs is an equivalence relation. In mathematics, an isomorphism is a structure-preserving mapping between two structures of the same type that can be reversed by an inverse mapping. Two mathematical structures are isomorphic if an isomorphism exists between them
What three things must be if two graphs are isomorphic?
They need to have the same amount of vertices, same amount of edges and same amount of degrees. If none of them are the same, the graphs are not isomorphic. A property preserved by isomorphism of graphs is called a graph invariant.
In a directed graph, how does a loop contribute regarding the amount of in and out-degrees?
A loop at a vertex contributes 1 to both the in-degree and the out-degree of this vertex.
What is a path?
Informally, a path is a sequence of edges that begins at a vertex of a graph and travels from vertex to vertex along edges of the graph. As the path travels along its edges, it visits the vertices along this path, that is, the endpoints of these edges. A path of length n from u to v in G is a sequence of n edges e1,…,en of G for which there exists a sequence x0 = u, x1 , …, xn1 , xn = v of vertices such that ei has, for i = 1, …, n, the endpoints xi1 and xi . When the graph is simple, we denote this path by its vertex sequence x0 , x1 , …, xn (because listing these vertices uniquely determines the path).
What is a circuit?
The path is a circuit if it begins and ends at the same vertex, that is, if u = v, and has length greater than zero. The path or circuit is said to pass through the vertices x1, x2, …, xn1 or traverse the edges e1, e2, …, en. A path or circuit is simple if it does not contain the same edge more than once.