Breadth-Fist Search Algorithm - BFS
- Hello everyone,
I'm working with a graph and I need to calculate the values of C and L, to do so, I need an algorithm to calculate the distance to the other elements.
A good one is BFS algorithm.
I tried to write the script in Perl but I got absolutely lost.
Can anyone help me?
Thanks in advance,
PS: Please, send me only-text mails
[Non-text portions of this message have been removed]