Create graph matrices from custom labeled vertices and edges. Compare directed, weighted, and looped networks. Study relationships accurately with clear summaries and exportable reports.
Enter vertices, edge pairs, and options. The calculator supports directed, undirected, weighted, and loop-enabled graphs.
This sample shows how labels and edges translate into a compact matrix summary.
| Example item | Value | Interpretation |
|---|---|---|
| Vertex labels | A, B, C, D | Four vertices define a 4 × 4 matrix. |
| Edge list | A,B | A,C | B,D | C,D | Each row gives one connection between two vertices. |
| Graph mode | Undirected, unweighted | The matrix becomes symmetric across the diagonal. |
| Density | 0.667 | Four edges exist out of six possible simple edges. |
| Degree pattern | A=2, B=2, C=2, D=2 | Every vertex participates in two connections. |
For vertices v1 ... vn, the adjacency matrix A stores one value for every ordered pair of vertices.
Unweighted case: Aij = 1 when an edge connects vi to vj, otherwise Aij = 0.
Weighted case: Aij = w(vi, vj) when the edge exists, otherwise Aij equals the chosen absent value.
Directed density: density = m / [n(n − 1)] without loops, or m / n2 with loops.
Undirected density: density = m / [n(n − 1) / 2] without loops, or m / [n(n + 1) / 2] with loops.
Degree totals: row sums measure outgoing links, column sums measure incoming links, and undirected degree equals the row sum plus its diagonal value when loops are present.
It shows whether each vertex connects to every other vertex. In weighted graphs, the matrix stores edge weights instead of simple ones and zeros.
The matrix is symmetric when the graph is undirected and mirrored edge values match on both sides of the main diagonal.
Yes. Turn on directed mode and weighted mode, then provide each edge as source,target,weight on its own line.
You can mark repeated edges as simple presence, sum their values, or overwrite earlier entries with the latest supplied edge.
When auto add is enabled, unseen labels found in edges are appended automatically. Otherwise, those edges are ignored with a warning.
They summarize connectivity quickly. In directed graphs they estimate outgoing and incoming totals. In undirected graphs they help verify degree patterns.
Yes, when the self-loop option is enabled. Then diagonal entries may contain ones or supplied weights for same-vertex edges.
Exports make it easier to archive results, attach them to coursework, compare graph versions, and share matrices with collaborators.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.