| 1 | # Copyright 2015, 2016, 2017 Kevin Ryde | ||
| 2 | # | ||
| 3 | # This file is part of Graph-Graph6. | ||
| 4 | # | ||
| 5 | # Graph-Graph6 is free software; you can redistribute it and/or modify it under | ||
| 6 | # the terms of the GNU General Public License as published by the Free | ||
| 7 | # Software Foundation; either version 3, or (at your option) any later | ||
| 8 | # version. | ||
| 9 | # | ||
| 10 | # Graph-Graph6 is distributed in the hope that it will be useful, but WITHOUT | ||
| 11 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 12 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 13 | # more details. | ||
| 14 | # | ||
| 15 | # You should have received a copy of the GNU General Public License along | ||
| 16 | # with Graph-Graph6. If not, see <http://www.gnu.org/licenses/>. | ||
| 17 | |||
| 18 | package Graph::Easy::As_sparse6; | ||
| 19 | 1 | ▶ | use 5.006; # Graph::Easy is 5.008 anyway |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | 1 | ▶ | use Graph::Easy::As_graph6; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | |||
| 24 | 1 | our $VERSION = 8; | |
| 25 | |||
| 26 | # uncomment this to run the ### lines | ||
| 27 | # use Smart::Comments; | ||
| 28 | |||
| 29 | |||
| 30 | package Graph::Easy; | ||
| 31 | sub as_sparse6 { | ||
| 32 | 9 | ▶ | my $graph = shift; |
|
Subroutine
as_sparse6: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 33 | 9 | return $graph->as_graph6 (format => 'sparse6', @_); | |
| 34 | } | ||
| 35 | |||
| 36 | 1 | 1; | |
| 37 | __END__ | ||