Graph Theory - Terminology and Theory Flashcards
(42 cards)
graph
A finite set of vertices and edges where each edge connects two vertices.
Example of an algebraic representation of a graph
G = (V, E)
V = {u, v, w}
E = {(u, v), (v, w), (u, w)}
True/False: In a graph, each edge must connect two vertices.
True
True/False: In a graph, there can be an edge connected to only one vertex.
False; In a graph, each edge must be connected to two vertices. (Also, an edge connected to one vertex leaves the other end of the edge disconnected).
T/F: Graphs must be composed of only one connected component/piece overall
False; there exists disconnected vertices, which consists of lone vertices - such graphs are composed of more than one piece/component
T/F: Graphs may be composed of more than one piece
True; Disconnected graphs are examples of graphs with more than one piece.
T/F: Edges may cross over each other
True
T/F: Edges cannot cross over each other
False; edges CAN cross over each other
T/F: Graphs can be drawn ONLY in one way
False
T/F: Graphs can be drawn in more than one/many ways
True
Adjacency
Two vertices u and v are adjacent to each other if and only if there exists an edge (u, v) touching u on one end and v on the other.
Incidence
“An edge (u, v) is incident to two vertices u and v” means there is an edge (u, v) that touches u on one end and v on the other end.
Self-loop
A curved edge that touches ONLY one vertex on both of its ends
Multi-graph
A graph that consists of self-loops and in some pairs of vertices, the vertices are adjacent to each other through multiple edges
Simple graph
A graph where there are NO self-loops and in every pair of vertices, the vertices are adjacent to each other through ONLY ONE edge.
Degree of a vertex
Number of edges incident on a vertex
Degree of a vertex only having a self-loop?
2
Degree of a lone/disconnected vertex?
0
Path
A contiguous sequence of vertices where in each pair of vertices, the vertices are connected to each other through ONLY one edge.
Simple path
A path in which all vertices are distinct; no repetition of any vertex
Length of path
No. of edges on a path; it is equal to no. of vertices - 1
subpath
A contiguous sub-sequence of vertices; Example: a subpath of a path from u to w consisting of vertices u, v, and w, is <u, v> and <v, w>
cycle/circuit
A path that begins and ends at the same vertex and all the edges are distinct
simple cycle
A cycle where except for the starting and ending vertex, all vertices are distinct/unique