Skip Menu |

This queue is for tickets about the Graph CPAN distribution.

Report information
The Basics
Id: 20185
Status: resolved
Priority: 0/
Queue: Graph

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.75
Fixed in: (no value)



Subject: problem with SPT_Bellman_Ford
Hi Jarkko SPT_Bellman_Ford reduces the number of vertices on an undirected, connected graph. Try running the attached script. I don't think that should happen? Daniel
Subject: test_graph.pl
#!/usr/bin/perl use warnings; use strict; use Graph; print "##### using Graph version: ", Graph -> VERSION, " #####\n"; my $g = Graph::Undirected -> new(unionfind => 1); $g -> add_weighted_edge('16977', '14903', 1); $g -> add_weighted_edge('21062', '4504', 1); $g -> add_weighted_edge('14671', '10554', 1); $g -> add_weighted_edge('14903', '8891', 1); $g -> add_weighted_edge('9714', '14671', 1); $g -> add_weighted_edge('4504', '13544', 1); $g -> add_weighted_edge('9714', '13544', 1); $g -> add_weighted_edge('16977', '8891', 1); $g -> add_weighted_edge('21062', '21062', 1); $g -> add_weighted_edge('9714', '4504', 1); $g -> add_weighted_edge('14671', '21687', 1); $g -> add_weighted_edge('14671', '16977', 1); $g -> add_weighted_edge('4504', '21687', 1); $g -> add_weighted_edge('10554', '14903', 1); $g -> add_weighted_edge('9714', '21687', 1); $g -> add_weighted_edge('13544', '14671', 1); $g -> add_weighted_edge('21062', '14671', 1); $g -> add_weighted_edge('10554', '8891', 1); $g -> add_weighted_edge('14671', '14903', 1); $g -> add_weighted_edge('14671', '14671', 1); $g -> add_weighted_edge('13544', '13544', 1); $g -> add_weighted_edge('14671', '14026', 1); $g -> add_weighted_edge('4504', '14671', 1); $g -> add_weighted_edge('14671', '8891', 1); $g -> add_weighted_edge('13544', '14026', 1); $g -> add_weighted_edge('10554', '16977', 1); if($g -> is_connected) { print "The graph is connected\n"; } else { print "The graph is not connected\n"; } my $number = scalar($g -> vertices); print "The number of vertices before SPT_Bellman_Ford: $number\n"; my $spt = $g -> SPT_Bellman_Ford; $number = scalar($spt -> vertices); print "The number of vertices after SPT_Bellman_Ford: $number\n";
Subject: Re: [rt.cpan.org #20185] problem with SPT_Bellman_Ford
Date: Sat, 08 Jul 2006 19:17:33 +0300
To: bug-Graph [...] rt.cpan.org
From: Jarkko Hietaniemi <jhi [...] iki.fi>
Guest via RT wrote: Show quoted text
> Thu Jun 29 07:33:23 2006: Request 20185 was acted upon. > Transaction: Ticket created by guest > Queue: Graph > Subject: problem with SPT_Bellman_Ford > Broken in: 0.75 > Severity: Critical > Owner: Nobody > Requestors: > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=20185 > > > > Hi Jarkko > > SPT_Bellman_Ford reduces the number of vertices on an undirected, > connected graph. Try running the attached script. I don't think that > should happen? > > Daniel
Please try with Graph 0.77. Show quoted text
>
On Sat Jul 08 12:17:55 2006, jhi@iki.fi wrote: Show quoted text
> Guest via RT wrote:
> > Thu Jun 29 07:33:23 2006: Request 20185 was acted upon. > > Transaction: Ticket created by guest > > Queue: Graph > > Subject: problem with SPT_Bellman_Ford > > Broken in: 0.75 > > Severity: Critical > > Owner: Nobody > > Requestors: > > Status: new > > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=20185 > > > > > > > Hi Jarkko > > > > SPT_Bellman_Ford reduces the number of vertices on an undirected, > > connected graph. Try running the attached script. I don't think that > > should happen? > > > > Daniel
> > Please try with Graph 0.77. >
> >
>
Hi Jarkko The newest release I can find at: http://www.cpan.org/authors/id/J/JH/JHI/ is Graph-0.76 Daniel
Subject: Re: [rt.cpan.org #20185] problem with SPT_Bellman_Ford
Date: Wed, 12 Jul 2006 11:30:13 +0300
To: bug-Graph [...] rt.cpan.org
From: "Jarkko Hietaniemi" <jhi [...] iki.fi>
Seems that my upload failed. I will retry tonight.
I assume this has been satisfactorily resolved.