Consider the graph shown below.
graph TB A((1))-->B((2)) A-->C((3)) B-->D((4)) C-->E((5)) D-->B E-->C D-->A
- Is this a directed or undirected graph?
- Is this a strongly connected graph?
- Is 5 reachable from 2? If so, what path can you follow?
- Write out an edge list for this graph.
- Write out an adjacency list for this graph.
- Write out an adjacency map for this graph.
- Write out an adjacency matrix for this graph.
- Compute a topological ordering for this graph.
- Write out the transitive closure for this graph.
- What are the neighbors of node 3?