3 ms·
In your graph, the nodes are not owning each other, are they?
by lrem 7y ago
In your graph, the nodes are not owning each other, are they?
- magicalhippo 7y agoNo, but they do point to each other. For example, each node can have an array of all the edges, and each edge has two pointers to each node it connects. Via this you can walk around cycles for example. And typically these can change when nodes are inserted or removed.