Skip to main content
Calcimator

Graph Theory Calculator

Analyze graph properties including degree, density, connectivity, and Eulerian path possibility.

About this calculator

This calculator estimates structural properties of a graph — average degree, density, likely connectivity, and whether an Eulerian circuit is possible — from just three summary numbers: how many vertices it has, how many edges connect them, and whether the graph is directed. It never receives the actual list of which vertex connects to which; every output here is derived purely from those counts, by the handshaking lemma (average degree equals twice the edge count divided by the vertex count for an undirected graph) and by comparing the edge count to how many edges a complete graph on that many vertices would need. Vertices pulls Average Degree down more sharply than Edges pulls it up, since Vertices sits in the denominator of that ratio and a bigger denominator shrinks a fraction faster than the same proportional change to the numerator grows it.

Because this page never sees real vertex-to-vertex connections, "Possibly Connected" and "Eulerian Circuit Possible" are genuinely just estimates: a graph can satisfy the edge-count condition checked here for "Possibly Connected" while still being disconnected in reality. For "Eulerian Circuit Possible," the check confirms only that the average degree comes out to a whole number (2E divisible by V) — that's weaker than confirming the average degree is even, and far weaker than confirming every individual vertex has an even degree, which a genuine Eulerian circuit requires; a graph with, say, 6 vertices and 9 edges has a whole-number average degree of 3, which is odd, and would still be reported "Possible" here. The calculator also performs no check that your edge count is achievable without duplicate connections between the same pair of vertices.

Inputs

Results

Average Degree

2.33

Graph Density0.4667
Possibly ConnectedYes
Max Possible Degree5
Eulerian Circuit PossibleNot possible
Max Possible Edges15
How to Use This Calculator
  1. Enter the number of Vertices (V) and Edges (E) in the graph.
  2. Set Directed to 1 if the graph is a directed graph (digraph), or 0 for undirected.
  3. Review Average Degree — for undirected graphs this equals 2E/V by the handshaking lemma.
  4. Check Graph Density — values near 0 indicate sparse graphs, near 1 indicate dense graphs.
  5. Use Max Edges to determine how close the graph is to being complete.

How the result changes with Vertices (V)

Vertices (V)Average Degree
34.67
4.52.8
91.56
150.93

What each input means

Vertices (V)
Number of vertices (nodes) in the graph
Edges (E)
Number of edges (connections) in the graph
Directed (0=No, 1=Yes)
Whether the graph is directed (digraph) or undirected

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    Vertices (V) = 6, Edges (E) = 7, Directed (0=No, 1=Yes) = 0 = 3 input(s) provided
  2. Calculate Average Degree
    Average Degree
    2.33 = 2.33
  3. Calculate Graph Density
    Graph Density
    0.4667 = 0.4667
  4. Calculate Possibly Connected
    Possibly Connected
    Yes = Yes

Engine last updated . Checked against 3 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.

Frequently Asked Questions

Why does increasing Vertices lower the Average Degree while increasing Edges raises it?

Average Degree is computed as twice the edge count divided by the vertex count. Raising Vertices grows the number sitting in the denominator of that fraction, which shrinks the overall ratio, while raising Edges grows the numerator directly and pushes the ratio up — the two counts sit on opposite sides of the same division.

Can this calculator tell me for certain whether my graph is connected?

No — "Possibly Connected" is only a necessary-condition check, comparing your edge count against the minimum of Vertices minus one edges a connected graph would need. A graph can pass that count check and still be disconnected in practice, since the calculator never receives which specific vertices your edges actually join together.

What does 'Eulerian Circuit Possible' actually verify?

For an undirected graph it checks two necessary conditions: that twice the edge count divides evenly by the vertex count, which makes the average degree a whole number — not necessarily an even one — and that the graph passes the same connectivity estimate used elsewhere on the page. A whole-number average degree can still be odd (6 vertices and 9 edges gives an average degree of 3, for instance, and would still show "Possible" here), and neither condition guarantees every individual vertex has an even degree, which true Eulerian circuits require.

What is Max Possible Edges, and why does it change with the Directed setting?

Max Possible Edges is how many connections a complete graph — one where every vertex pairs with every other — would have at your given vertex count. A directed graph counts each pair twice, once in each direction, so its maximum is Vertices times (Vertices minus one), exactly double the undirected maximum of that same product divided by two.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Math & Statistics.