On 18 Oct 2005 01:07:54 -0700, "sanoBabu" <> wrote
or quoted :
>
>Honestly I don't know how I can tackle the solution after that.
>After adding the edges, do I just run the minimal spanning tree
>algorithm (g.prim()) on the Graph or do I have to do something more?
A few thoughts.
I would think an edge would have two nodes, source and dest.
It depends on how your algorithm works, but you may need to build a
structure of nodes with references linking them rather than a separate
list of edges. It was not clear if you did that.
The key is to understand your algorithm. It presumes a certain
representation. You have to provide that.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.