๐ฎ Graph Theory (Practice)
Companion to the Graph Theory guide. Build an adjacency list and detect a cycle in a directed graph. Edit and run the code right here โ it executes in your browser.
๐ Your turnโ
Loading editorโฆ
๐ง Challenge yourselfโ
- Return a topological order when there is no cycle.
- Count connected components in an undirected graph.
- Adjacency list vs matrix โ when is each better?
Continue the learning path โ Shortest Path