#I need help

13 messages · Page 1 of 1 (latest)

burnt sphinx
#

I have a direct graph something like this image attached. I want to count how many verticals I go to from 2, So like 3, 0, 1. how do I implement this?

lime auroraBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.

hushed crag
#

Any kind of search, i recommend DFS cause it's the easiest

#

Note that from the house in the pic you can get only to 3

#

Unless these were supposed to be undirected edges

twilit beacon
hushed crag
#

IMO the easiest way to store them it's to have a vector of vectors or an array of vectors

#

Then you have

burnt sphinx
#

!solved

lime auroraBOT
#

Thank you and let us know if you have any more questions!

#

[SOLVED] I need help

lime auroraBOT
#

@burnt sphinx

This question thread is being automatically marked as solved.