Pomentumgraphos

Explore a software ecosystem

Hundreds of packages, people and teams, and you want to see which packages matter and how they group.

Engineering and platform teams6 stepsExample

Step through it, animated →

The situation

For anyone who wants to see graphos on a graph that looks like real work. A graph of a million nodes cannot be drawn, but its communities can; the demo shows the same thing at a size you can look at: an invented software ecosystem, loaded by one example script.

Step by step

  1. Problem 1. Hundreds of packages, no picture

    Packages depend on each other, people maintain them, teams own them. As a list, nothing says which packages everything leans on, or how they cluster.

    The demo graph: — · Most central package: — · Communities: —

  2. With graphos 2. Load the demo

    The example 08_demo_ecosystem.py registers the tenant demo and loads it through the API in batches of 500. Every name in it is made up.

    It prints 443 nodes and 1,870 edges; running it again rewrites the same graph.

    The demo graph: 443 nodes · 1,870 edges

  3. How it works 3. Its schema, declared

    graphos ships no labels of its own; the example declares them: Package, with Library, Framework and Tool beneath it, Person, Team, Organisation and Topic, and the edge types DEPENDS_ON, MAINTAINS, MEMBER_OF, PART_OF and TAGGED.

    It also declares a search index on names, and label styles that size each package by its PageRank.

  4. How it works 4. Metrics, with nothing extra

    graphos computes degree, PageRank, components and betweenness over DEPENDS_ON, beside the API, and stores them on the nodes. The example prints 280 packages in 2 components.

    PageRank's top package is corelog; betweenness's is shiplite.

    Most central package: corelog, by PageRank

  5. With graphos 5. Communities, with the igraph extra

    With the optional igraph extra, the example runs Louvain, weighting DEPENDS_ON most, and prints 6 communities with a modularity of 0.741.

    Without the extra, the demo loads without them.

    Communities: 6, modularity 0.741

  6. How it works 6. See it in Explore

    In the web UI, Explore draws the graph coloured by community. Selecting corelog shows the metrics graphos computed for it: PageRank 0.1067, a degree of 21, all incoming.

    Where the Cypher console is on, the example also saves queries such as most_depended_on and maintainers_of.

What graphos does here

Graph algorithms
PageRank, components, betweenness and, with the extra, communities.
Web UI
Explore draws the graph, its groups and its map.
Tenant
The demo is one tenant, with the labels the example declares.
Python client
The example loads it with the Python client.

What shows it: Example

Example: the script is in graphos's repository and its printed results are quoted in the algorithms guide; it is checked by the linter in CI but not run there. The numbers in the screenshot match its output.

Shown by an example script in the repository, its output quoted in the docs.

See it in graphosExplore, on the demo tenant: coloured by community (the optional igraph extra), a core library selected with the metrics graphos computed for it.
The Explore view of the demo tenant, an invented software ecosystem: about 450 nodes coloured by the community Louvain found, six clusters around shared core libraries; the selected library's panel shows its community id and the graph metrics graphos computed.

Try it

Start graphos (with the igraph extra for communities), then run the example. The installation guide says how.

The demo example

Related use cases