Edge list to a laid-out network · centrality and communities, computed in a worker

Network Graph from CSV

Load an edge list (source, target, optional weight) and optionally a node file. The layout, degree, betweenness, closeness, PageRank and Louvain communities run in a background worker you can cancel.

Edge list

Drop an edge CSV or XLSX

Up to 2,000 nodes and 20,000 edges

Node attributes (optional)

Drop a node CSV

An id column that matches the edge names, plus label and group

Run

12 nodes and 22 edges read.

Press Analyze network to compute the layout and the metrics.

Network Graph from an Edge List CSV

Operator: Abdulla Al Fahad. How tools are built and checked

A picture of connections rarely answers who holds the groups together, and a spreadsheet of connections cannot show which groups exist. This page computes both from the edge list: centrality measures that rank the nodes and Louvain communities that split them into groups, with a force layout to see them.

Load an edge list with a source, a target and an optional weight, and optionally a node file with a label and a group per person. The force layout, the measures and the community detection run in a background worker with a progress readout and a Cancel button, so a large graph does not freeze the page.

Then size nodes by a measure, colour them by community, group column or size, search by name to dim everything else, click a node for its neighbours, and export SVG, PNG or a node metrics CSV.

Key features

  • Edge list from CSV, XLSX or pasted rows with a column picker; undirected or directed; weights optional; up to 2,000 nodes and 20,000 edges
  • Repeated pairs are added together, self-loops are ignored and counted, and rows with a missing name or a non-positive weight are skipped and listed
  • Degree (and in and out degree when directed), weighted degree, betweenness, closeness, PageRank and Louvain communities
  • A force-directed layout with 20 to 1,000 steps and a fixed seed, so the same input gives the same picture
  • Size by any measure, colour by community, group column or size, label the top 10, 30 or all nodes
  • Search that highlights matches and dims the rest, a focus view of one node and its neighbours, pan and zoom with buttons, wheel or drag
  • SVG and PNG at 1,600 px wide, and a node metrics CSV with the layout coordinates

Which measures are computed and how each is defined

Betweenness and closeness use hop counts: every edge has length 1 whatever its weight, because a weight here usually means strength of tie, not distance. Betweenness is the share of shortest paths between other pairs of nodes that pass through a node, scaled by (n-1)(n-2) so that a star's centre scores 1 and a five-node path's middle node scores 0.667. Closeness is the Wasserman and Faust form, (r-1)/(n-1) multiplied by (r-1) over the sum of distances to the r nodes it can reach, so nodes in small components do not score high just for being near few nodes. In a directed graph both follow outgoing edges.

PageRank uses a damping factor of 0.85, edge weights as shares of a node's outgoing weight, and spreads the rank of nodes with no outgoing edges evenly, iterating until the total change is below 10^-10 or 200 rounds. An undirected edge counts in both directions.

Louvain treats the graph as undirected and weighted, moves nodes between communities while modularity improves, merges communities into super-nodes and repeats. Communities are numbered by size, largest first. The resolution setting scales the expected-edges term: below 1 gives fewer, larger groups; above 1 gives more, smaller ones. The visiting order is shuffled with a fixed seed.

The layout is the Fruchterman and Reingold spring model: every pair of nodes repels, connected nodes attract in proportion to distance and to a factor that grows slowly with weight, a weak pull holds components near the centre, and moves are limited by a temperature that falls to zero over the steps. The result is scaled into a 1,000-unit box.

How it works

The worker receives the nodes and the merged edge list, reports a phase and a percentage as it runs shortest paths from every node (one breadth-first search each, which also gives closeness), PageRank, Louvain and the layout, and sends back one result. Cancel stops and discards the worker, and loading new data does the same, so an old result is never shown against new data.

Pairwise repulsion makes the layout cost grow with the square of the node count, which is why the node limit is 2,000.

Common use cases

  • A researcher loads 900 co-authorship edges, sizes nodes by PageRank, colours by community, and exports the metrics CSV to join with a department column in a spreadsheet.
  • A team lead loads 40 people and 130 'asked for help' edges as directed, and uses in-degree to find who everyone relies on.
  • An IT admin loads a list of 300 servers and the connections between them, searches for 'db-' to see where the databases sit, and focuses one to list what talks to it.

How to use this tool

  1. Drop the edge CSV, or paste rows, and check the Source, Target and Weight pickers; add a node CSV if you have labels or groups.
  2. Choose whether edges are directed, adjust the layout steps if you want a longer settle, and press Analyze network.
  3. On a large graph watch the phase and percentage under the button, and press Cancel if you want to change the data or settings first.
  4. Click a node, or its Focus button in the top-nodes table, to see its metrics and its neighbours.
  5. Search and re-size the picture, then export the SVG, PNG or the metrics CSV.

Example

Load example: 22 weighted edges among 12 people, with a node file giving each person's team

Ana, Ben, Cleo and Dev (Design); Eli, Fay, Gus and Hal (Engineering); Ivy, Jon, Kim and Lea (Sales). Inside each team everyone is linked with weights 2 to 5. Between teams there are four links of weight 1: Cleo–Eli, Ana–Eli, Hal–Ivy and Dev–Ivy.

Results

12 nodes, 22 edges, 1 component, 3 communities, modularity 0.610. Ivy: degree 5, weighted degree 14, betweenness 0.473, closeness 0.647, PageRank 0.096. Hal: betweenness 0.230. Dev: betweenness 0.224. Ben, Fay, Gus, Jon, Kim and Lea: betweenness 0, because no shortest path between other people passes through them.

Tips for best results

  • Use a node CSV whose id column matches the edge names exactly; names that appear only in the node file are ignored, since a node with no edges has nothing to show.
  • Raise the resolution to 1.5 or 2 when one community swallows most of the graph, and lower it below 1 when you see many tiny groups.
  • Sort the top-nodes table by switching Size by: it ranks by whichever measure is selected, and falls back to degree for Same size.
  • Focus a node before exporting to get its neighbours labelled in the picture.

Common pitfalls

Community detection ignores edge direction, so a one-way relationship counts like a mutual one when groups are formed.

Common errors and how to fix them

"The edge list needs a header row, two columns and at least one row."
The file has a single column or only a header. Check that the delimiter was detected, and that the first line holds names such as from, to and weight rather than data.
"The data has 3,400 nodes and 25,000 edges. The limits are 2,000 nodes and 20,000 edges."
Filter the list to the part you want first, for example one year or edges above a minimum weight, then load it again.
"Row 6: the weight "x" is not a positive number, so the row was skipped."
Fix the cell or clear it. An empty weight counts as 1; zero and negative weights are skipped because a tie of no strength is no tie.
"This browser could not start the analysis worker."
The browser blocks module workers, which happens in some locked-down environments. Use a current Chrome, Edge, Firefox or Safari.

Best practices

  • Look at the component count before reading centrality: with 3 components, closeness compares nodes that cannot reach each other.
  • Check the self-loop and merged-pair counts under Run against what you expect, since they show how the edge list was read.

Reading betweenness against degree

In the example Eli and Ivy both have degree 5, but Ivy's betweenness is 0.473 and Eli's 0.182. Ivy connects three groups while most of Eli's neighbours already know each other, so far fewer shortest paths need Eli.

That difference is why the page offers several measures: degree finds the busiest node, betweenness finds the broker, closeness finds the node nearest to everyone, and PageRank finds the node many well-connected nodes point to.

What the search and focus views do

Search matches the node id or its label, ignoring case. When one node is focused, only it, its neighbours and the edges that touch it stay prominent. The SVG export uses whatever search or focus is active, so clear both for a plain picture.

Files and exports

The metrics CSV has one row per node with its label, group, degree, weighted degree, betweenness, closeness, PageRank, community and layout coordinates. Text cells starting with =, +, - or @ are written with a leading apostrophe so a spreadsheet does not run them.

Frequently asked questions

Why does the layout look different from another tool's for the same data?

Force layouts depend on the starting positions and the force model, and none of them has one correct answer. This page fixes its seed, so repeated runs here agree, but positions carry no meaning beyond distance and clustering.

Can nodes have more than one group?

No. The group column holds one value per node. To compare several attributes, load the graph once per attribute with a different group column.

Does the page treat A to B and B to A as the same edge?

Only in undirected mode, where they are merged and their weights added. With directed switched on they stay as two edges and in-degree and out-degree differ.

Why is closeness 0 for some nodes?

A node that reaches no other node, such as one with no outgoing edges in a directed graph or an isolated node, has no distances to average, so its closeness is 0.