Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 pondering the Monastery: (13)
As of 2014-09-23 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (234 votes), past polls