Graph theory Flashcards
What is a graph?
A diagram with a set of points called vertices that are joined by lines called edges
What are adjacent vertices?
Two vertices that are at opposite ends of an edge (a common edge)
What does multiple edges mean?
Two or more edges which connect to the same pair of vertices.
What is a loop?
An edge in a graph that joins a vertex to itself
What is an isolated vertex?
A vertex that isn’t connected to any other vertex in a graph by an edge
What is the degree of a vertex?
The number of graph edges that touch that vertex
How many degrees does a loop add to a vertex?
Two
What is the sum of degrees?
The total number of degrees of each vertex added together
What is the in-degree of a vertex?
The number of edges coming into the vertex
What is the out-degree of a vertex?
The number of edges going out from that vertex
Give an example of a vertex and edge set.
Set of vertices: V = {A, B, C}
Set of edges: E = {AB, AD, AC, BC}
Give an example of an adjacency list.
A: B, D, E
B: A
C: D, E
D: A, C, E
E: A, C, D
The list indicates what each vertex is adjacent to
What is a null graph?
A graph made up of isolated vertices and no edges
What is a trivial graph?
A null graph with only one vertex
What are the features of a simple graph?
- No loops
- No multiple edges
- Number of vertices with an odd degree is even