Knotwork Link Graph Analyser

Degree, groups, shortest path and PageRank for any link graph — find hubs and orphans.

Lines like “A -> B”, “A → B”, “A, B” or tab-separated. A line with one name adds an item without links; # starts a comment. JSON: { "nodes": [{ "id", "title", "kind" }], "edges": [{ "from", "to", "kind" }] } — the format Knotwork exports. At most 20,000 nodes and 100,000 links.

More options

Probability that the random surfer follows a link instead of jumping anywhere. 0.85 is the classic value.

Try an example: · ·

More about this tool

Part of Knotwork

How it works

Paste the links between your pages, issues, notes or any other items — as an edge list (“A -> B”) or JSON with nodes and edges — and get the number of links per item (in, out and total), the connected groups, the most linked hubs, the most central items by PageRank, the orphans nobody links to and, if you name two items, the shortest chain of links between them. The same analysis Knotwork runs on a workspace graph.

  • Links are directed (from → to). Duplicate links and self-loops are counted once / ignored; end points that are not listed as nodes are added.
  • Degree = number of distinct items linked with an item in either direction; in/out count links that point to / leave it. Hubs are sorted by degree, then incoming links, then input order.
  • Connected groups (weakly connected components) and the shortest path use breadth-first search with neighbours in input order, so the same input always gives the same path. The path ignores link direction unless you tick the option.
  • PageRank: power iteration of r = (1 − d)/N + d · (Σ r(j)/out(j) over items j linking here + r(dangling)/N), where items without outgoing links spread their rank over all items; it stops when the total change is below 10⁻¹⁰ (at most 200 rounds). Scores sum to 1.
  • Orphans are items with no link at all. Density = links ÷ (N · (N − 1)).

Sources

Part of Knotwork

  • Knotwork Workspace knowledge graph

    See how your team’s pages, issues, cards, chats and people connect — and what links here.

    Open Knotwork

Related tools

How to use the Knotwork Link Graph Analyser

Paste the links between pages, issues or notes and see the hubs, the orphans, the connected groups, the shortest path between two items and their PageRank.

What it is for

Wikis, issue trackers and note collections grow into a web of links that nobody can see at once. Some pages are linked from everywhere, some are linked from nowhere, and sometimes two things you thought were related are not connected at all. This analyser takes that web as a plain list of links and answers the usual questions: which items are the hubs, which are orphans, how many separate groups there are, how two items are connected and which items are the most central.

It runs the same engine as the Knotwork app. A graph you export from Knotwork (File → Export graph JSON) can be pasted here unchanged and gives the same numbers as the Reports view.

Worked example

The first example is a small product team: a roadmap page, a checkout redesign page, a few issues (WEB-12, WEB-14, WEB-15), a mobile app page, a chat message, a card, two people and an old page that nothing links to. Each line is one link, written from -> to.

The result reads: 11 items and 10 links in 2 connected groups; 1 orphan; most linked: WEB-12 Payment form (4); path Ana → Mobile app: 4 links. The path table shows the chain Ana → WEB-12 Payment form → Checkout redesign → Roadmap 2027 → Mobile app. The orphan is “Old onboarding notes”, a line with only a name and no link.

The second example is a cycle A → B → C → A. Every item gets exactly the same PageRank (33.33 %), which is a quick way to see that the method treats items fairly when the links are symmetric.

The third example uses the JSON form with titles and kinds and two separate groups (onboarding pages and office pages), with a path from the payroll FAQ to the laptop order.

How to read the result

  • Links counts distinct directed links. The same link written twice counts once; a link from an item to itself is ignored.
  • Degree (column Links) is the number of different items linked with an item in either direction; In and Out split it by direction.
  • Hubs are the items with the highest degree. PageRank is a score for how central an item is: it is high when many items, or important items, link to it. The scores of all items add up to 100 %.
  • Orphans have no link at all. Connected groups are sets of items that are linked with each other, ignoring the direction.
  • The shortest path uses the fewest links. By default links can be followed both ways; tick Path follows link direction only to follow them only from → to.

Tips and common mistakes

  • Write one link per line: A -> B, A → B, A, B or A tab B. A line with just a name adds an item without links; # starts a comment.
  • Names are matched exactly, including spaces and capital letters. “Roadmap” and “roadmap” are two different items.
  • For titles and types use JSON: {"nodes": [{"id": "p1", "title": "Onboarding", "kind": "page"}], "edges": [{"from": "p1", "to": "p2"}]}. The path fields then take the ids.
  • The damping factor is the chance that a reader follows a link instead of jumping somewhere at random. Keep 0.85 unless you compare with another tool that uses a different value.
  • When two shortest paths exist, the one through the item listed first wins, so the result never changes between runs.

FAQ

How big can the graph be?

Up to 20,000 items and 100,000 links.

Because the items that link to it are themselves central. One link from a hub counts more than several links from orphans.

Is my data stored?

No. The graph is analysed for this request and not kept.

Guide last updated:

For scripts and AI agents

  • JSON API: POST https://knotworklinkgraph.usefulweb.app/api/v1/calculate (same calculation as this page)
  • Interface description: OpenAPI 3.1 · AI guide: llms.txt
  • MCP server (Streamable HTTP): https://knotworklinkgraph.usefulweb.app/mcp · tool name knotwork_link_graph
Example request
curl -s -X POST https://knotworklinkgraph.usefulweb.app/api/v1/calculate \
  -H 'content-type: application/json' \
  -d '{"graph":"# Product team knowledge: one link per line (from -> to)\nRoadmap 2027 -> Checkout redesign\nRoadmap 2027 -> Mobile app\nCheckout redesign -> WEB-12 Payment form\nCheckout redesign -> WEB-14 Address autocomplete\nWEB-12 Payment form -> WEB-14 Address autocomplete\nWEB-15 Card validation -> WEB-12 Payment form\nMobile app -> APP-3 Offline mode\n#design-review message -> Checkout redesign\n#design-review message -> WEB-12 Payment form\nCard: Usability test -> Checkout redesign\nAna -> WEB-12 Payment form\nBen -> APP-3 Offline mode\nOld onboarding notes","from":"Ana","to":"Mobile app"}'
Feedback · ideas & bug reports welcome