Click here to Skip to main content
15,878,543 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello.
Today my lecturer asked me question - how can we generate graph using BFS or DFS? I thought it is used only for traveling through the graph, searching vertex, etc. Do you have any idea what is the answear?
Posted

1 solution

You are absolutely right. You should have asked the lecturer what she/he means, exactly the way you asked us. And what was meant by "generating a graph", generation out of what (as if generation was a problem :-))?

—SA
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900