Macaulay2 » Documentation
Packages » Graphs :: doubleStar
next | previous | forward | backward | up | index | toc

doubleStar -- returns a double star graph

Synopsis

Description

A double star graph is a graph formed by starting with 2 vertices and joining them together. Then each vertex is connected to a fixed amount of leaves (vertices of degree 1) specified by the user in the inputs.

i1 : G = doubleStar(4,5)

o1 = Graph{0 => {1, 2, 3, 4, 5, 6}}
           1 => {0}
           2 => {0}
           3 => {0}
           4 => {0}
           5 => {0}
           6 => {0, 7, 8, 9, 10}
           7 => {6}
           8 => {6}
           9 => {6}
           10 => {6}

o1 : Graph

See also

Ways to use doubleStar :

For the programmer

The object doubleStar is a method function.