Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: traversing a hash looking for path?

by Albannach (Prior)
on Apr 11, 2006 at 19:41 UTC ( #542647=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    use Graph;
    ...
    1.2.3.4 links with 1.2.3.7
    1.2.3.5 links with 1.2.3.7
    1.2.3.7 links with 1.2.3.5
    
  2. or download this
    link from 1.2.3.4 to 1.2.3.5 added
    duplication of 1.2.3.5 to 1.2.3.4
    link from 1.2.3.5 to 1.2.3.6 added
    ...
    the nodes are: 1.2.3.4, 1.2.3.5, 1.2.3.6, 1.2.3.7
    the links are: 1.2.3.4=1.2.3.5,1.2.3.4=1.2.3.7,1.2.3.5=1.2.3.6,1.2.3.5
    +=1.2.3.7,1.2.3.6=1.2.3.7
    a shortest path from 1.2.3.4 to 1.2.3.6 is: 1.2.3.4 => 1.2.3.7 => 1.2.
    +3.6
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2014-07-23 05:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (133 votes), past polls