More Linking
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.
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement