File: 05_single_node.t

package info (click to toggle)
libgraph-nauty-perl 0.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 160 kB
  • sloc: perl: 202; makefile: 3
file content (11 lines) | stat: -rw-r--r-- 256 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
use strict;
use warnings;
use Graph::Nauty qw( automorphism_group_size orbits );
use Graph::Undirected;
use Test::More tests => 2;

my $g = Graph::Undirected->new;
$g->add_vertex( 0 );

is( automorphism_group_size( $g ), 1 );
is( scalar orbits( $g ), 1 );