Graphs Flashcards
What is a decision graph?
A model which shows a series of points and their connectivity
Define arc and node
Node: the points which the graph connects, aka vertices
Arc: the connectors between nodes, aka edges
Define a simple graph
A graph with no loops and only one arc connecting each node to another
Define a connected graph
A graph where every node is connected to every other node, either directly or indirectly
Define a complete graph
A graph where each node is connected directly to each other node once
What is a trail?
A sequence of arcs such that one arc begins where the last ended
What is a path?
A trail within which each node is used only once
What is a closed trail?
A trail where the start and end nodes are the same
What is a cycle?
A closed trail where the only repeated node is the first/ last
What does the order of a node mean?
The number of arcs leaving the node
What condition must be met for a closed trail to exist?
The order of every node is even or there are only two odd nodes
What is the difference between Eulerian and Semi Eulerian graphs?
Eulerian has only even noes, while Semi Eulerian has two odd nodes
What is meant if a graph is traversable?
Each arc is used only once, nodes may be repeated
What are the steps of the route inspection algorithm?
- Find all odd order nodes
- for each pair of odd nodes, find the shortest connecting route between them
- Pair the nodes such that the weight of these connecting routes is minimised
- On the graph, duplicate these chosen paths
- Find a trail on the new Eulerian graph
Define a Eulerian graph
A connected graph where all the nodes have even orders