| 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::Writer::Sparse6; | ||
| 19 | 1 | ▶ | use 5.006; |
|
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::Writer::Graph6; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | |||
| 24 | 1 | ▶ | use vars '@ISA','$VERSION'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 25 | 1 | @ISA = ('Graph::Writer::Graph6'); | |
| 26 | 1 | $VERSION = 8; | |
| 27 | |||
| 28 | # uncomment this to run the ### lines | ||
| 29 | # use Smart::Comments; | ||
| 30 | |||
| 31 | |||
| 32 | sub _init { | ||
| 33 | 0 | ▶ | my ($self,%param) = @_; |
|
Subroutine
_init: not called CC=1 SCAR=6.9
| |||
| 34 | ### Graph-Writer-Sparse6 _init() ... | ||
| 35 | ### %param | ||
| 36 | |||
| 37 | 0 | $self->SUPER::_init(format => 'sparse6', %param); | |
| 38 | |||
| 39 | ### self: %$self | ||
| 40 | } | ||
| 41 | |||
| 42 | 1 | 1; | |
| 43 | __END__ | ||