Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Do you know where your variables are?
 
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 romping around the Monastery: (25)
As of 2014-04-16 13:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (427 votes), past polls