Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi please helpe me
I have aproblem I can't write a program that read agraph and give me (output) the tree that represent this graph
Posted
Comments
Sandeep Mewara 27-Oct-10 7:01am    
I can't write means? You tried? Show us what.
Tarun.K.S 27-Oct-10 7:22am    
"this" graph? which graph? show it!
shakil0304003 27-Oct-10 10:28am    
what you tried?
Abhinav S 27-Oct-10 14:00pm    
Homework...

1 solution

If you convert a tree from a graph. then you may have to cut some of the edge of the graph. So, after converting tree, you may not back to the graph. For converting the tree, you can use BFS or DFS or minimum spaning tree or Kruskal or primes. Some links that you can see or you can search it in google.

Click
 
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