Click here to get back home

"diameter", "has_a_cycle" problems in Graph-0.76 module

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
"diameter", "has_a_cycle" problems in Graph-0.76 module hi_ryo 07-12-2006
Get Chitika Premium
Posted by hi_ryo on July 12, 2006, 4:32 am
Please log in for more thread options


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.


Posted by hi_ryo on July 12, 2006, 4:57 am
Please log in for more thread options


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

> "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.


Similar ThreadsPosted
Problems using Module PDF::Create February 18, 2005, 2:51 am
Gunzip module problems November 6, 2006, 4:56 pm
trying to resolve module installation problems November 11, 2007, 2:51 pm
Problems using GD.pm January 8, 2005, 8:05 pm
Problems when using Net::MSN 1.022 May 4, 2005, 1:20 pm
LWP problems July 11, 2005, 3:50 pm
PPM Problems on Win.XP November 5, 2007, 4:26 pm
LWP Problems (Authentication?) September 5, 2004, 7:12 am
Net::FTP mdtm problems December 14, 2004, 11:00 pm
Problems with Parse::Lex May 5, 2005, 8:22 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap