D1 Flashcards
Graph
Diagram involving a set of points and interconnecting lines
Vertex
A point on a graph
Edge
A connecting line on a graph between two points
Loop
Line connecting a vertex to itself
Multiple edges
Two edges connecting two points
Simple graph
No loops or multiple edges
Connected
Possible to travel from any vertex to any other vertex (you can go via other vertices)
Degree
The no. edges arriving at a vertex
Complete graph
There is an edge connecting every possible pair of vertices
Kn is the complete graph with n vertices. How many edges does it have?
1/2n(n-1)
What does an adjacency matrix show?
the number of direct routes from one vertex to another
Network
Graph where each edge has an associated number it’s ‘weight’
What does a distance matrix show?
the weights of the routes between one vertex to another
Walk
sequence of connected edges
Trail
Walk where you can’t use any edge more than once