The Graph
The Graph draws the objects of a project as nodes, and the links between their documents and their relationships as lines. This page says what is on it, which part of a large project it shows, how to work with its nodes, and how its layout is made and kept.
1. What the Graph shows
The Graph is along the bottom of the window at first. Each node is an object, labeled with its name. Each edge is a link from one object's document to another object: a [label](target) or a [[target]] whose target is the other object (see The Document Panel). Links to web pages, and links that lead to no object, are not drawn. Each relationship made in the Inspector (see The Inspector) is an edge too, between its two objects.
Object types are not nodes, except as the hub described in section 2.
Edges are curves that bend around the nodes they would otherwise cross. The selected object's node is highlighted, together with the nodes it is joined to directly. The node with the most edges on the Graph is the hub: it has a color of its own, which fades over the nodes up to five steps away from it. The colors come from the app color theme, in its [graph] section (see Themes).
2. Which objects are on it
Which nodes the Graph shows. With nothing selected it is empty. The limit of 400 counts every object of the project.
| Selected | Project of 400 objects or fewer | Larger project |
|---|---|---|
| Nothing | An empty Graph. | |
| An object | Every object of the project. | The object, the objects its document links to, the objects that link to it, and the objects it has a relationship with. |
| A type | Every object of the project. | Every object of the type, the links between them, and a hub node with the type's name, joined to each of them. |
3. Working with the nodes
| What you do | What happens |
|---|---|
| Click a node | Selects its object in the Project Tree, opening the rows above it, and shows its document and fields. |
| Drag a node | Moves it. Its new place is kept in the project, counts as a change to save, and can be undone with Edit > Undo. |
| Turn the mouse wheel | Scrolls the Graph up and down; the scrollbars scroll it too. |
| Right-click | A menu with Undo and Redo of the project's changes. |
When the selected node is outside the visible part of the Graph, the Graph scrolls to put it in the middle. The hub of a type can be dragged too, but its place is not kept: it is placed again among its objects each time.
4. The layout
Skein places the nodes by itself: nodes that are joined pull together and the others push apart, groups that are not joined at all are laid out side by side, and the selected node sits in the middle with its neighbors around it.
- Every selection lays the Graph out again. Selecting an object or a type, in the Project Tree, on the Graph or by a link, places all the shown nodes afresh, with as few crossing edges as it can, and keeps those places in the project. This does not count as an unsaved change. The selection Skein restores when it starts or opens a project is not laid out again, so the Graph first shows the places it had last time.
- Edit > Sort Graph Nodes (
Ctrl+Shift+G) does the same at any time: it forgets the places of the shown nodes, including the ones you dragged, and lays them out again. It is greyed when the Graph is empty. - A node you dragged keeps its place until the Graph is laid out again, which happens at the next selection.
5. When the Graph is brought up to date
The Graph follows every change that affects it: making, renaming, moving or deleting objects, undo and redo, adding or removing a relationship, and the links of a document, as soon as that document is written into the project (when you select another object, save, or autosave saves). While the Graph panel is hidden it is not drawn; it catches up when you show it again with View > Graph. The list "Referenced by" on the Inspector's Relationships tab, which is made from the same links, is kept up to date either way.
6. Known limitations
- Objects nested more than 64 levels deep are left out.
- Since every selection lays the Graph out again, the places you give nodes by dragging do not last.
- The mouse wheel scrolls up and down only; there is no zoom.
- Nodes do not show the object's own color or icon; their colors only mark the selection and the hub.
