Connections
A connection is a link from one node to another. As shown in GetStarted, the simplest way to create them is by adding an anchor in the node text itself. However, there are other ways to create connections between nodes.
Links
Even if a node is not mentioned in the node text, you can still add connections to it.
For simple connections without any associated properties, you can simply add links, which are lightweight connections without any metadata aside from the automatically determined source and destination:
[nodes.Quark] text = "A subatomic particle that forms hadrons." links = [ "Particle", "Hadron" ]
This will create two outgoing connections from Quark: to Particle and to Hadron.
Rich connections
For richer connections that have their own properties, you can use the full connection syntax:
[nodes.Earth.connections.Moon] kind = "Satellite" [nodes.Earth.connections.MilkyWay] kind = "Galaxy"
This will create connections from the node with ID Earth to the nodes with ID Moon and MilkyWay and add the "Satellite" and "Galaxy" kinds to each connection, respectively. This will add a corresponding CSS class with the same name to the connection when it's rendered so you can style it in special ways and is also reflected in the output formats.