CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2003
    Posts
    815

    MST algorithm for Multi Graph

    Hi,

    I hope that this is the correct forum for this question, if not I ask for your forgiveness.
    I need to find the Minimal Spanning Tree, on a Multi Graph,
    I'm using Java in Eclipse enviroment.

    Any idea?

    Thanks in advance
    Avi

  2. #2
    Join Date
    Jun 2002
    Location
    Moscow, Russia.
    Posts
    2,176

    Re: MST algorithm for Multi Graph

    Of all edges between two given nodes you need the shortest, discard all other edges. After that you'll have to implement minimum spanning tree on ordinary graph, you can find algorithms for that anywhere.
    http://en.wikipedia.org/wiki/Prim%27s_algorithm
    http://en.wikipedia.org/wiki/Kruskal%27s_algorithm
    Refer external links in Wikipedia articles - there are implementations there.
    "Programs must be written for people to read, and only incidentally for machines to execute."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured