Jump to content
  • Advertisement

Archived

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

LordN

More Linking

This topic is 5445 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!