Adjacency Matrix Calculator — Convert an Edge List to a Matrix
Our Adjacency Matrix Calculator takes a graph entered as a simple text edge list (weighted like A-B:4 or unweighted like A-B) and builds its full adjacency matrix — a grid showing which nodes connect to which, and at what weight — along with the derived degree sequence for every node.
Quick Answer
Enter your graph as an edge list to instantly build its adjacency matrix and see the degree sequence for every node.
Enter edges as NodeA-NodeB (unweighted) or NodeA-NodeB:weight (weighted), e.g. A-B, A-C:2.
How to Use the Adjacency Matrix Calculator — Build a Graph Matrix Online
- 1
Enter your graph as a comma-separated edge list, e.g. A-B, A-C, B-C (unweighted) or A-B:4, A-C:2 (weighted).
- 2
Click 'Calculate' to build the adjacency matrix.
- 3
Review the matrix grid and the degree of each node.
Why Use Adjacency Matrix Calculator — Build a Graph Matrix Online?
An adjacency matrix represents a graph as a grid of numbers: entry (i, j) holds the weight of the edge between node i and node j, or 0 if no edge exists — a representation that turns graph problems into matrix and linear algebra problems, and that many graph algorithms use internally for fast edge lookups. This calculator builds that matrix directly from a compact edge-list description and reads off the degree sequence (how many edges touch each node) as a byproduct.
Frequently Asked Questions
Related Tools
Dijkstra's Shortest Path Calculator — Weighted Graphs Online
Find the shortest path and total distance between two nodes in a weighted graph using Dijkstra's algorithm. Free calculator with a simple edge-list input.
Minimum Spanning Tree Calculator — Kruskal's Algorithm Online
Find the minimum spanning tree of a weighted graph using Kruskal's algorithm. Free calculator with a simple edge-list input and union-find cycle detection.
Graph Degree Sequence Validator — Erdős–Gallai Theorem Online
Check whether a sequence of numbers is a valid (graphical) degree sequence using the Erdős–Gallai theorem. Free calculator with step-by-step verification.
Network Flow Calculator — Max Flow via Edmonds-Karp Online
Find the maximum flow from a source to a sink in a capacitated directed graph using the Edmonds-Karp algorithm. Free calculator with a simple edge-list input.
Markov Chain Steady State Calculator — Stationary Distribution Online
Find the stationary (steady-state) distribution of a Markov chain from its transition matrix using power iteration. Free calculator, instant results.