Discrete Flashcards
Graph
Vertices joined by edges
Simple graph
No loops or multiple edges
Connected
If all vertices are connected
Subgraph
Part of another graph
Subdivision
Add a new vertex to an edges
Degree/order of vertex
Number of lines coming off it
Sum of degrees
Always double the number of edges
Walk
Sequences of edges that flow end to end
Trail
A walk without repeating edges
Cycle
A trail that starts and ends at the same vertex
Hamiltonian cycle
Goes though each vertex exactly once
Planar graph
No edges cross each other
Euler’s formula
v-e+f=2
Complete graph
All vertices directly connected
Complement
Bits to add to make a complete graph
Bipartite graph
Two sets of vertices, an edge can only join a vertex in one set to a vertex in another set
Tree
Graph with no cycles
Adjacency matrices
Show number of links between vertices
Isomorphic graphs
Identical, vertices and edges connected in same way
Network
Graph with weights
Distance table
Shows weights between nodes (vertices)
Spanning tree
Subgraph that includes all nodes
Minimum spanning tree
Shortest way to connect all points
Kruskals algorithm
Add arcs in ascending order of weight, not if will create a cycle, until all nodes connected
Prims algorithm
Pick a node, choose are of least weight to join node in tree to node not in tree
Route inspection algorithm
Finds shortest path covering all arcs
Connected graph - Eulerian
All nodes have even degree
Connected graph - semi-eulerian
Exactly two nodes have odd degree