Build random networks with clear controls and visuals. Study structure, density, and connectivity using practical graph measures today.
| Scenario | Model | Nodes | p or m | Directed | Output Focus |
|---|---|---|---|---|---|
| Sparse practice network | G(n,p) | 10 | p = 0.15 | No | Low density, several components |
| Balanced classroom graph | G(n,p) | 18 | p = 0.30 | No | Moderate degree spread |
| Exact-edge test case | G(n,m) | 12 | m = 20 | No | Fixed edge count comparison |
| Directed process map | G(n,m) | 14 | m = 26 | Yes | Flow-style structure review |
1) Maximum edges
For an undirected simple graph, the maximum possible edges are n(n−1)/2. For a directed graph without self-loops, the maximum is n(n−1).
2) Expected edges in G(n,p)
Expected edges = p × maximum possible edges.
3) Density
Density = actual edges / maximum possible edges.
4) Average degree
Average degree = sum of node degrees / number of nodes. In undirected graphs, this also equals 2E / n.
5) Clustering coefficient
For each node, local clustering = actual links among neighbors / possible neighbor links. The reported value is the mean across eligible nodes.
6) Average path length
Compute shortest paths between connected node pairs, then average those path distances. Disconnected pairs are excluded from the mean.
G(n,p) is a random graph model with n nodes. Each possible edge is independently included with probability p. It helps study expected connectivity and density patterns.
G(n,m) fixes the number of nodes and the exact number of edges. The calculator randomly selects m valid edges from all possible choices.
A seed makes the random process repeatable. Using the same inputs and seed recreates the same graph, which is useful for testing and demonstrations.
Density measures how full a graph is. It compares actual edges to the maximum possible edges allowed by the chosen graph rules.
If no connected node pairs exist beyond isolated nodes, there are no valid shortest paths to average. In that case, the result is not available.
This calculator reports combined incident links for simplicity. In directed mode, it still summarizes total attached connections rather than separate in-degree and out-degree.
Use the circular layout when you want a stable, clean arrangement for presentations. It is especially helpful when force layouts appear crowded.
Yes. The CSV export downloads the edge list and summary metrics. The PDF export captures the result section and graph for sharing or printing.
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.