Style, insights and saved views
From version 2.2.2, the graph view can size and colour nodes by what they are or how they are connected, run analyses over the whole database, and keep a view to open again.
Style
Style on the canvas toolbar sets two rules.
Size nodes by: the same size for every node, the node's degree in the database, a number property, or a measure of the graph on the canvas: degree in view, PageRank or betweenness. Sizes scale with the square root of the value, so a few large hubs do not drown out the rest.
Colour nodes by: label, degree in the database, any property, or a measure of the graph on the canvas: PageRank, betweenness, Louvain community or connected group. Numbers colour along a scale from low to high; text values and groups each get their own colour.
The measures "on the canvas" use only the nodes and relationships you have drawn, and they update as you expand and hide. PageRank follows relationship direction, so a node ranks highly when well-ranked nodes point at it; betweenness counts how often a node lies on the shortest path between two others. To measure the whole database, use Insights.
The legend follows the colour rule. For communities, groups and text values, click an entry to select its nodes. The Style panel also lists the top 10 nodes by the chosen measure; click one to select it and open it in the inspector.
Show hidden relationship counts puts a badge on each node with the relationships not yet drawn; see what is still hidden. Draw relationships between new nodes and the ones already shown is on by default; see the canvas.
Insights
Insights runs an analysis across the whole database:
| Insight | Shows |
|---|---|
| Labels | For each label: nodes, average and largest degree, and how many nodes have no relationships at all |
| Hubs | The 25 nodes with the most relationships |
| PageRank | The 25 highest-ranked nodes |
| Components | How many separate islands the graph has, how many are single nodes, and the largest and smallest |
| Communities | Louvain communities, largest and smallest |
Click a ranked node to add it to the graph, or open all 25 in a new tab. In Labels, click an unconnected count to open up to 200 of those nodes. In Components and Communities, Open draws a group, or the first 200 of a larger one, in a new tab.
Small components are usually orphaned records: rows that were written without the relationship that links them to the rest of the graph, such as sessions whose user was never attached. Components finds them in one click, and Labels shows which label they carry.
PageRank, Components and Communities project the whole database into memory with
gds.graph.project under a temporary name and drop it when they finish,
so they use the same memory as any projection of that size and need an account that may
run GDS procedures. Labels and Hubs read the database directly.
Saved views
Views keeps the graph on the canvas under a name: which nodes are drawn, where they sit and how they are styled. Opening a view reloads those nodes, and the relationships between them, from the database into a new tab, so it always shows current data. Views are kept in the browser you saved them in; a browser keeps up to 30.
Related articles
Explore the graph · Graph data science · PageRank and communities