The graph#

Graph (above the results) shows a query tab’s nodes and the links between them. It shows the same nodes as the table: switching between them does not run the query again.

A graph colored by tag, with its legend

Using it#

  • Click a node to select it and show it in the details pane. Ctrl/⌘-click or Shift-click adds a node to the selection; click the background to clear it. Hold Shift and drag over the background to select the nodes in a box.

  • Right-click a node for the same menu as in the table (see Right-click actions). Add neighbors to results adds the nodes around it: up to 200 each way, through properties and light edges.

  • Drag a node to move it, drag the background to pan, and scroll to zoom. Hovering a node shows its form and value in the toolbar.

  • Fit fits the whole graph in view; Re-layout lays it out again.

Layouts#

Pick one from the toolbar: cose (the default), force, concentric, breadthfirst, circle or grid. The choice is remembered.

Large graphs#

  • Above 300 nodes, cose is replaced by force, which runs in the background so the page stays responsive. Laying out… shows while it runs. Nodes which arrive while the query runs are placed next to a neighbor, and the full layout runs once the query is done.

  • Labels are hidden when you zoom out.

  • The graph shows at most 2,000 nodes. Past that the toolbar says Showing the first 2000 nodes.; the table has them all.

800 nodes laid out with force

Colors#

  • Color by form (the default): one color per form.

  • Color by tag: pick a tag prefix such as #rep.vendor; each node gets the color of its tag one level under it (#rep.vendor.apt1). A tag’s own color is used when you set one (see Tags); nodes without such a tag are grey.

  • Color by property: pick a property; nodes with the same value share a color.

The legend lists the colors in use, with how many nodes have each. A color set by Storm’s colorize command (inet:fqdn | colorize red) always wins.

The colors come from the theme. Graph colors in the account menu can switch them to a colorblind safe palette (Okabe-Ito) under any theme (see Settings).

The same graph with the Okabe-Ito palette

The graph is a picture: screen readers are told that the table lists the same nodes, and the table is the view to use with a keyboard.