Identification
Graph Basics
- Graphs consist of nodes and edges where a path leads from node
ato nodeband its length isnedges - A path is a cycle, if the first and last nodes are the same
- A graph is connected if there is a path between any two nodes
- A tree is a graph that has n nodes and n-1 edges
- Edges can be directed or weighted
- Two nodes are neighbours if there is an edge between them
Solving Steps
- Choose graph representation
- Choose traversal technique
- Implement a flavour on top of our technique
- Backtracking (if DFS)?
- Topological Sort