Graphs and Networks Flashcards
What does a graph consist of
Points (vertices/nodes), the list of which may be referred to as the vertex set
Lines (edges/arcs), the list of which may be referred to as the edge set
Weighted graph or network
If a graph has a number (weight) associated with each edge
Subgraph of G
A graph, each of whose vertices belong to G and each of whose edges belong to G
A part of the original graph
The number of edges incident to a vertex
Degree/valency/order
A loop counts as 2
A vertex has either odd or even degree
Walk
A finite sequence of arcs such that the end vertex of one arc is the start vertex of the next
Path
A walk in which no vertex appears more than once
Trail
A walk in which no edge is visited more than once
Cycle/circuit
A closed path - finishes at the start vertex
Hamiltonian cycle
A cycle that visits every vertex exactly once
When is a graph connected?
If all its vertices are connected
Loop
An edge which starts and finishes at the same vertex
Simple graph
One with no loops and no more than one edge connecting any pair of vertices
Directed edges
Where the edges have a direction associated to them
Known as a digraph
Euler’s handshaking lemma
In any undirected graph, the sum of the degrees of the vertices is equal to 2x the amount of edges. As a consequence, the number of odd vertices must be even, including possibly zero.
Tree
A connected graph with no cycles