Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: creating adjacency matrix

by pajout (Curate)
on Jan 06, 2011 at 10:03 UTC ( [id://880784] : note . print w/replies, xml ) Need Help??


in reply to creating adjacency matrix

It depends on planned purpose, for instance...

my %adj = (A => ['B'], B => ['A','C'], C => ['B','D'], D =>['C']);