Graph Degree Calculator

Enter an edge list and instantly see each vertex's degree, the total degree sum, and the sorted degree sequence.

Edge List Input

Graph type

Examples

Enter an edge list and click Calculate to see results.

Copied!

Summary

Enter an edge list and instantly see each vertex's degree, the total degree sum, and the sorted degree sequence.

How it works

  1. Enter edges one per line in the format "A B" or "A-B" (e.g. "1 2" means an edge between vertex 1 and vertex 2).
  2. Choose whether the graph is undirected or directed.
  3. Click Calculate to process the edge list.
  4. Each vertex's degree (or in-degree/out-degree for directed) appears in the results table.
  5. The degree sequence and total degree sum are shown below the table.

Use cases

  • Verify the handshaking lemma: total degree always equals twice the number of edges.
  • Identify hub vertices (high-degree nodes) in network analysis.
  • Compute in-degree and out-degree distributions for directed graphs.
  • Check whether a degree sequence is graphical (can represent a valid graph).
  • Study graph properties for algorithms courses and homework.
  • Quickly validate adjacency data before building a graph data structure.

Frequently Asked Questions

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