|
|
|
|
|
|
| Author |
Message |
hi_ryo *nix forums beginner
Joined: 12 Jul 2006
Posts: 2
|
Posted: Wed Jul 12, 2006 8:32 am Post subject:
"diameter", "has_a_cycle" problems in Graph-0.76 module
|
|
|
Hello all,
I have some problems with these two functions in Graph : "diameter" and
"has_a_cycle".
"diameter" works only at the first time it's used. If then I added some
other vertices and edges, and call diameter again, it returns the
previous value, no matter how the graph is changed.
"has_a_cycle" should return true when there is a cycle in the graph,
and false if not. However, when there is no cycle, it returns
"uninitialized value" instead of false.
Thanks for help. |
|
| Back to top |
|
 |
hi_ryo *nix forums beginner
Joined: 12 Jul 2006
Posts: 2
|
Posted: Wed Jul 12, 2006 8:57 am Post subject:
Re: "diameter", "has_a_cycle" problems in Graph-0.76 module
|
|
|
The return of undef value in "has_a_cycle" seems to have no harm.
Thanks again to wolverian and purl for making it clear to me.
hi_ryo
| Quote: | "has_a_cycle" should return true when there is a cycle in the graph,
and false if not. However, when there is no cycle, it returns
"uninitialized value" instead of false. |
|
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Sun Nov 23, 2008 11:07 am | All times are GMT
|
|
Mortgages | Budapest | Gundam 00 | MPAA | ModernForums
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|