0

so.. my professor ask us to read map(x,y) into a graph data structure and traverse using Breadth First Search. although i asked him for help, i still so lost..can someone please explain how should i start, such as what are some functions the graph class should has..and what they should so. i would really appreciate for your help :D thank you!!!

2
Contributors
2
Replies
4
Views
6 Years
Discussion Span
Last Post by wildplace
1

Graphs are typically implemented with an adjacency list or adjacency matrix (google it). If you're feeling especially frisky you can create the graph directly using linked nodes, but that's not necessarily recommended except as an exercise.

0

nice to see u again, narue..if u remember me ..lol
ur words made me feel much comfort with the graph thingie
thx :D

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.