> What do you mean?
If I understand correctly, you defined the Node with information of incoming /
outgoing Edge
type
Node*[N] = object ## The graph's node type.
weight*: N ## Associated node data.
next: array[2, EdgeIndex] ## Next edge in outgoing and incoming edge
lists.
Run
This way, you only have 1 Edge for each, 1 for incoming and 1 for outgoing.
Unless your graph specifically only as a one line flow, a node should be able
to have several nodes incoming and outgoing but you only defined it as an array
of two Edge member. If it's seq, you can add it later based on new graph
connection or any info.
Simply changing the definition into seq should somehow solve the limitation of
current definition. But since it's in development phase, you would recognize it
the more you develop it, that's why I mentioned "will be unused". CMIIW