Digraphs (Directed Graphs)
-
Path
-
Shortest path
-
Topological Sorting (can you draw a digraph so that all edges point upwards)
-
Strong Connectivity
-
Transitive closure (For which vertices v and w is there a path from v to w)
-
PageRank
Digraph Search
- Reachability - Find all vertices reachable from s along a directed path. (Use DFS)
Edge-Weighted Graph API
We use adjacency-list representation for representing a weighted graph, where each edge has a weight associated with it