Digraphs (Directed Graphs)
-image1-37eaca35b704ed32327bb1abc4e56b9e.jpg)
-
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
-image2-68492959995538760257ad609b427f50.jpg)
-image3-524ad924396566f3836fa119b2550920.jpg)
-image4-5c1dbf02e8d4de0c441aea5eacf96772.jpg)
Digraph Search
- Reachability - Find all vertices reachable from s along a directed path. (Use DFS)
-image5-01cf09f1da55b6cbe80c83dd47fde074.jpg)
-image6-f431f1e2fb416ff81b8db37cd02ea96b.jpg)
-image7-b58673efdcddf206956f1a6c93d23caa.jpg)
-image9-dc4b01400fa183cc1e65f6b8cded0493.jpg)
Edge-Weighted Graph API
We use adjacency-list representation for representing a weighted graph, where each edge has a weight associated with it
-image8-160ef24fa76353e24fe3fa117aa3990f.jpg)