For efficient use on larger networks, Graph is my new favorite toy:
use Graph::Directed; my $net = new Graph::Directed; # populate with $net->add_vertex(), $net->add_edge(), # $net->add_edges(), $net->add_path() my $tc = $net->TransitiveClosure_Floyd_Warshall;
After Compline,
Zaxo
In reply to Re: Transitive closure
by Zaxo
in thread Transitive closure
by larsen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |