Microsoft
Software
Hardware
Network
Question : Graph and Perl
I want to perform BFS and DFS on a graph.
1. how do I build a graph in Perl?
2. how do I do BFS on a given graph in Perl?
3. how do I do a DFS on a given graph in Perl?
Answer : Graph and Perl
Building a graph in Perl:
use Graph::Directed;
use Graph::Undirected;
$d1 = new Graph;
$d2 = new Graph::Directed;
$u = new Graph::Undirected;
explenations + full list of things you can do on a graph:
http://search.cpan.org/doc
/JHI/Graph
-0.201/lib
/Graph/Bas
e.pm
There is a full suite of graph handeling modules you can find at:
http://search.cpan.org/sea
rch?dist=G
raph
Among the modules there you can find the BFS and DFS modules and a module to traverse a graph.
Graph::BFS
http://search.cpan.org/doc
/JHI/Graph
-0.201/lib
/Graph/BFS
.pm
Graph::DFS
http://search.cpan.org/doc
/JHI/Graph
-0.201/lib
/Graph/DFS
.pm
Random Solutions
Pagination query with MSSQL Server
Batch File FTP
DNS errors 4521 and 9999 on a Windows 2003 RC2 Domain Controller server
Enable VMWare View 3 MMR
Automatically export xml-file from updated MS Access 2003
Time respond is too slow
Reading a file.
Capacity planning
Adding a directory to the path of the root user?
Add mask to dynamicly image scroller Acionscript 3