Codebase list libgraph-perl / 23c56dd
Import upstream version 0.9722 Debian Janitor 2 years ago
5 changed file(s) with 11 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
0 0.9722 2021-07-04
1 - fix neighbours et al not returning count in scalar context - thanks @merkys for report
2
03 0.9721 2021-04-18
14 - fix BitMatrix and AdjacencyMatrix problems - thanks @dod38fr for report
25
6767 "web" : "https://github.com/graphviz-perl/Graph"
6868 }
6969 },
70 "version" : "0.9721",
70 "version" : "0.9722",
7171 "x_serialization_backend" : "JSON::PP version 4.04"
7272 }
2929 resources:
3030 bugtracker: https://github.com/graphviz-perl/Graph/issues
3131 repository: git://github.com/graphviz-perl/Graph.git
32 version: '0.9721'
32 version: '0.9722'
3333 x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
1313
1414 use Graph::AdjacencyMap qw(:flags :fields);
1515
16 our $VERSION = '0.9721';
16 our $VERSION = '0.9722';
1717
1818 require 5.006; # Weak references are absolutely required.
1919
548548 $found->clear;
549549 }
550550 $got->remove($init->difference($self)->members) if $self_only_if_loop;
551 $got->members;
551 $got->${ wantarray ? \'members' : \'size' };
552552 }
553553
554554 sub all_successors {
585585 require Set::Object;
586586 my $s = Set::Object->new(&successors);
587587 $s->insert(&predecessors) if &is_directed;
588 $s->members;
588 $s->${ wantarray ? \'members' : \'size' };
589589 }
590590 *neighbors = \&neighbours;
591591
7777 for my $m (sort keys %methods) {
7878 for my $t ( @{ $methods{$m} } ) {
7979 my ($args, $expected0, $expected1) = @$t;
80 my $got0_count = scalar $g0->$m(@$args);
81 my $expected0_count = scalar split ' ', $expected0;
82 is $got0_count+0, $expected0_count, "right number for scalar context $m";
8083 is( "@{[sort $g0->$m(@$args)]}", $expected0, "directed $m (@$args)" );
8184 is( "@{[sort $g1->$m(@$args)]}", $expected1, "undirected $m (@$args)" );
8285 }