star_graph#

star_graph(number_of_vertices: int)#

Generates a star graph with a specified number of vertices.

A star graph is a type of graph where one central node is connected to all other nodes, and those other nodes have no connections to each other.

Args:
number_of_vertices (int): The total number of vertices in the star graph,

including the central vertex. Must be greater than or equal to 2.

Returns:
PlanarDiagram: A planar diagram object of the star graph, with vertices

labeled using the ASCII alphabet starting from ‘a’. The arcs represent the connections from the central node to each outer node.

Raises:

ValueError: If the number_of_vertices is less than 2.