From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

use strict;
use Test::More tests => 4;
use Graph;
require 't/matches.pl';
my $g;
$g = new Graph::Maker('small_world_ba', N => 50, M => 2, undirected => 1);
ok(not grep {$g->degree($_) < 1} $g->vertices());
$g = new Graph::Maker('small_world_ba', N => 50, M => 2, undirected => 1);
ok(not grep {$g->degree($_) < 1} $g->vertices());
$g = new Graph::Maker('small_world_ba', N => 50, M => 2);
ok(not grep {$g->in_degree($_) < 1} $g->vertices());
ok(directedok($g));