niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » Perl » modules
"diameter", "has_a_cycle" problems in Graph-0.76 module
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
hi_ryo
*nix forums beginner


Joined: 12 Jul 2006
Posts: 2

PostPosted: Wed Jul 12, 2006 8:32 am    Post subject: "diameter", "has_a_cycle" problems in Graph-0.76 module Reply with quote

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

PostPosted: Wed Jul 12, 2006 8:57 am    Post subject: Re: "diameter", "has_a_cycle" problems in Graph-0.76 module Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Sun Nov 23, 2008 11:07 am | All times are GMT
navigation Forum index » Programming » Perl » modules
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Winbind problems for ADS authentication nlinley networking 1 Tue Sep 19, 2006 9:22 am
No new posts problems using oddmuse with mod_perl2 inside apache2.2 pe... Fergus McMenemie Perl 0 Fri Jul 21, 2006 9:48 am
No new posts Problems with make-kpkg and skas patch Todd A. Jacobs Debian 0 Fri Jul 21, 2006 12:30 am
No new posts strange error when importing a module Robin Becker python 1 Thu Jul 20, 2006 4:04 pm
No new posts Problems with relay control Félix Martos Trenado Postfix 3 Thu Jul 20, 2006 3:33 pm

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
[ Time: 0.2134s ][ Queries: 16 (0.1411s) ][ GZIP on - Debug on ]