Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Graph traversal--shortest path?

by jkahn (Friar)
on May 05, 2003 at 19:41 UTC ( [id://255732]=note: print w/replies, xml ) Need Help??


in reply to Graph traversal--shortest path?

A very similar conversation came up in the chatterbox a few weeks ago.

Someone asked about Graph::BFS and linked to Six Degrees via Shortest Path ?. I did some research on this problem, and was able to solve a variant of the problem porkpilot describes by using simple accesses to Graph::Base methods.

In the process of exploring Graph::BFS I found that its biggest problem was its poor documentation -- I couldn't figure out how it worked without reading all the code, and I didn't have the energy.

Replies are listed 'Best First'.
Re: Re: Graph traversal--shortest path?
by Anonymous Monk on May 06, 2003 at 04:31 UTC
    Thanks very much to all for your replies! I appreciate you taking the time.

    Initially, I searched CPAN for "breadth first" and came up with Graph::BFS (it's at the top of the results ;) ), but until djantzen's suggestions about Graph::Traversal and adjaceny matrices, I could not see how to make it go...

    While I certainly agree with jkhan about the Graph modules' documentation, the dots are now connected and I have learned a great deal.

    Now, to go get a copy of Mastering Algorithms with Perl!

      Sorry--forgot to check I was logged in for that last post. Anyway, my script is now 100% working and I am adding bells and whistles.

      ++ to you all and thanks again.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://255732]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-18 03:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found