The star graph is a special class of the general windmill graph class, in particular, it is windmill(2,n). A star graph is best visualized having one vertex in the center of a circle of other vertices. The edge set is formed by connecting this center vertex to each of the outside vertices. The outside vertices are only connected to the center vertex.
i1 : starGraph 5 o1 = Graph{0 => {1, 2, 3, 4, 5}} 1 => {0} 2 => {0} 3 => {0} 4 => {0} 5 => {0} o1 : Graph |
The object starGraph is a method function.