- or download this
{v1 => $vertex1, v2 => $vertex2, rna => $rna, state => 1 }
...
}
# Output the edges of the graph with weights for each vertex
- or download this
# traverse the graph using DFS
my $t = Graph::Traversal::DFS->new($g);
my @v = $t->preorder;
print qq[Preorder:\n];
print qq[$_\t] foreach @v;
- or download this
@v = $t->postorder;
print qq[Postorder:\n];
print qq[$_\t] foreach @v;
- or download this
my @r = $t->roots;
print qq[Roots:\n];
print qq[$_\t] foreach @r;