Jump to content
  • Advertisement


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


More Linking

This topic is 5537 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
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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!