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:
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?

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 :-))?

Share this answer

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