Adjacency Matrix Tool

Enter graph edges and instantly see the adjacency matrix, degree sequence, and basic graph properties.

Graph Input

Enter edges on the left and click Build Matrix.

Copied!

Summary

Enter graph edges and instantly see the adjacency matrix, degree sequence, and basic graph properties.

How it works

  1. Choose directed or undirected graph mode.
  2. Enter edges one per line using the format "A B" or "1 2" (two node labels separated by a space).
  3. Click Build Matrix to generate the adjacency matrix.
  4. Read the N×N grid — a 1 means an edge exists between row-node and column-node.
  5. Check the degree sequence and statistics table below the matrix.

Use cases

  • Verify hand-built adjacency matrices for graph theory homework.
  • Quickly visualize small graphs for algorithm design or debugging.
  • Check degree sequences before applying degree-based theorems.
  • Understand directed vs. undirected edge representation side-by-side.
  • Prepare data for graph algorithms that require matrix input.

Frequently Asked Questions

Last updated: 2026-06-13 · Reviewed by Nham Vu