how to represent graphs /trees in python and how to detect cycles?

i want to implement kruskal's algorithm in python how can i go about representing the tree/graph and what approach should i follow to detect the cycles ?

9
задан Bunny Rabbit 14 December 2010 в 20:16
поделиться