NAME
Graph::Maker::OliveTree - create star-like graphs
SYNOPSIS
use Graph::Maker::OliveTree;
$graph = Graph::Maker->new ('olive_tree', N => 3);
DESCRIPTION
Graph::Maker::OliveTree creates Graph.pm olive tree graphs. An olive tree is a root vertex with N paths below it of successive lengths 1..N. For example
1
/ | \
2 3 5 N => 3
| |
4 6
|
7
N=0 is no arms, just the single root vertex.
FUNCTIONS
$graph = Graph::Maker->new('olive_tree', key => value, ...)-
The key/value parameters are
N => integer graph_maker => subr(key=>value) constructor, default Graph->newOther parameters are passed to the constructor, either
graph_makerorGraph->new().If the graph is directed (the default) then edges are added in both directions. Option
undirected => 1creates an undirected graph and for it there is a single edge each.
SEE ALSO
Graph::Maker, Graph::Maker::Star
HOME PAGE
http://user42.tuxfamily.org/graph-maker-other/index.html
LICENSE
Copyright 2018, 2019, 2020, 2021 Kevin Ryde
This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with This file. If not, see http://www.gnu.org/licenses/.