Module fast_graph::node
source · Expand description
§Node is a struct representing a node in the graph,
— which has a generic data field and a list of EdgeIDs.
A NodeID is a key to the node in the slotmap.
§Why is there no “NodeTrait”?
The Node struct is very simple and doesn’t need a trait. If you want to add more functionality or data to the Node you can probably just add it to the data field, or add a node as a field to your custom type.
Structs§
- A struct representing a node/vertex in the graph.
- A key to the node in the slotmap.