Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2017-05-30 12:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?