Graph Algorithm & Input Guides for Competitive Programming
Every guide includes time/space complexity references, common debugging mistakes in contests, copy-ready testcases, and 1-click links to load the exact graph into the live canvas.
Algorithm & Topic Guides
Graph Editor — Nodes & Edges
Create directed, undirected, and weighted node & edge graphs visually or via instant text parsing and 2x PNG/SVG export.
Whiteboard & TeachingPen, Highlighter, Laser & Text Guide
Sketch freehand vector ink (P), fade-out Laser Pointer beams (K), sweep-erase strokes (X), and place borderless Canvas Text (T).
Shortest PathDijkstra & Bellman-Ford Visualizer
Trace weighted relaxations, priority queues, shortest-path trees, and negative-weight cycle detection.
Graph TraversalBFS & DFS Visualizer Online
Inspect queue vs recursion stack order, tin/tout entry-exit timestamps, and level distances.
Trees & Tree DPTree Visualizer, Diameter, LCA & DP
Visualize Codeforces/AtCoder parent arrays, double-BFS diameter, Binary Lifting LCA, Subtree DP, and Centroids.
Directed Graphs & CutsTopological Sort (DAG) & Tarjan SCC
Debug Kahn's in-degree topological ordering, Strongly Connected Components, and bridge/cut vertices.
Input FormatsLeetCode, CSES & Codeforces Input Guide
Format edge lists, 2D arrays, weighted nodes, primed IDs (1'), adjacency matrices, and multi-testcases.
Directed GraphsDirected Graph & Digraph Editor Online
Draw directed graphs with clear arrowheads, multi-edges, self-loops, string weights, and live cycle detection.
Matrix ConverterAdjacency Matrix to Graph Visualizer
Paste any N x N binary or weighted matrix to auto-generate directed or undirected node & edge diagrams.
MST, Bipartite & TrailsKruskal & Prim MST, Bipartite & Eulerian
Step through DSU edge sorting, Prim's cut edges, 2-coloring, Kuhn max matching, and Hierholzer trails.
Quick-Launch Presets in Editor
| Topic | Supported Algorithms | Launch Live |
|---|---|---|
| Weighted Directed Graphs | Dijkstra, Bellman-Ford, Prim MST | Open Dijkstra Demo → |
| Graph Traversals | BFS, DFS, Bipartite Check | Open BFS/DFS Demo → |
| Trees & Hierarchies | Diameter, LCA, Subtree DP, MIS DP, Centroid | Open Tree Demo → |
| DAGs & Cycles | Kahn's Topological Sort, Tarjan SCC, Bridges | Open DAG/SCC Demo → |
| LeetCode / Zero-Indexed | 0-based Edge Lists, String Weights, Node Weights | Open LeetCode Demo → |
| Directed Graph & Digraphs | Arrowheads, Multi-Edges, Self-Loops, Cycle Detection | Open Directed Demo → |
| Adjacency Matrix Input | N x N Binary 0/1 Matrix, Weighted Matrix, Symmetric | Open Matrix Demo → |
| Spanning Trees & Bipartite | Kruskal MST, Prim MST, Bipartite 2-Color, Eulerian Path | Open MST Demo → |