Node
A node is defined in your graph file starting with a table header of the form:
[nodes.ID]
Where ID is an identifier of your choice.
While the TOML specification is quite flexible regarding what characters can make up this identifier, it's recommended that you keep it simple and use only letters and numbers. See AnchorSyntax for more details on why.
Fields
Nodes can have several optional fields that alter how en interprets and displays them.
title: The main heading shown at the top of the page and tab titletext: The textual content that is shown when the node is accessedredirect: Where to redirect any attempt to access the nodelinks: An array of identifiers for other nodes to which this node is connectedhidden: Whether this node should be listed in the index and tree pages. This won't prevent the node from being found or linked to directly through its ID
Example
[nodes.Citrus] title = "Citrus Trees" hidden = false text = "Citrus is a |genus| of trees known mainly for its fruits." redirect = "Citric" links = [ "Orange", "Lemon", "Lime", "Grapefruit", ] [[nodes.Citrus.connections]] from = "Citrus" to = "Citric acid"
Default values
The example above has all fields in it for completeness, but all fields have default values and are therefore optional. This means that explicitly writing hidden = false is the same as not setting it at all.
The default values for unset fields are:
title: Same as the identifiertext: An empty string (i.e.text = "")redirect: An empty stringlinks: An empty array (i.e.links = [])hidden:false