Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

(Golf) Shortest Graph Distance

by Masem (Monsignor)
on May 11, 2001 at 22:49 UTC ( #79811=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    %g = ( Chicago => { Cleveland=>400 },
           Cleveland => { Chicago=>400 } );
    
  2. or download this
    my %g = ( Chicago=>{ Detroit=>250,
                         Cleveland=>400,
    ...
    d( \%g, 'Denver', 'Cleveland' ); # should be ( 'Denver', 'Chicago', 'C
    +leveland' )
    d( \%g, 'Cleveland', 'Denver' ); # should be 
    ( 'Cleveland', 'Chicago', 'Denver' );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://79811]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2023-12-04 04:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (21 votes). Check out past polls.

    Notices?