Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 imbibing at the Monastery: (15)
As of 2014-10-23 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (125 votes), past polls