Archived

This topic is now archived and is closed to further replies.

LordN

More Linking

Recommended Posts

I want to create a linked list in which, after initialization, a function is set up to run through the list and link each node to every other node meeting specific criteria. How can I dynamically create pointers to other nodes, each node will have a different number of links depending on how many other nodes meet its criteria.

Share this post


Link to post
Share on other sites
That''s not a linked list, it''s a directed graph.

Each node in your directed graph will have a container of "destination" node pointers; this container may be a dynamic array, an associative structure of some kind, or even a linked list.


How appropriate. You fight like a cow.

Share this post


Link to post
Share on other sites