Unit 1 Test - Graph Theory Flashcards
Graph definition
A collection of dots and lines or curves connecting pairs of vertices
Vertex definition
Dots
Edge definition
Lines or curves connecting vertices
Loop definition
An edge that connects a vertex to itself
Degree/valence of a vertex meaning
Number of edges meeting at that vertex
Path definition
A sequence of vertices connected by edges
Circuit definition
A closed path, meaning a path that starts and ends at the same vertex
Connected graph definition
Any two vertices have a path connecting them
Weight of an edge meaning
The “cost” of the edge
Euler path definition
A path that uses every path exactly once
Euler circuit definition
A circuit that’s also an Euler path
How can you know if a graph has an Euler circuit?
All vertices have even degrees
Fleury’s Algorithm
Verify the existence of the Euler path or circuit, then start at any vertex (circuit) or a vertex of odd degree (path) and choose any edge leaving that vertex, assuming that deleting that edge doesn’t separate the graph. Add that edge to the circuit/path and delete it from the graph, continuing until complete.
Eulerization definition
The process of adding edges to adjacent vertices to create an Euler circuit
Efficient Eulerization
Minimizing the number of duplicated edges
Chinese Postman Problem
Euler Circuit Theorem
If G is connected and all its vertices have even degree/valence, then G has an Euler circuit (and vice versa)
Euler Path Theorem
If G is connected and exactly two vertices have odd degree, then G has an Euler path and no Euler circuit, and if G has more than 2 vertices with odd degree, then G does not have an Euler path
Valence Theorem
For any graph G, the total number of vertices with odd valence is either zero or an even number
Digraph/Directed graph definition
A graph in which each edge has an arrow that indicates the edge’s direction
Weighted graph definition
A graph in which each edge has a number associated with the edge
Weight of a graph definition
The total number of the weight of each edge
Hamiltonian Path
A path where each vertex is used only once.
Hamiltonian Circuit
A path where each vertex is used only once, other than the start and end vertex