path_graph#
- path_graph(number_of_vertices: int)#
Create a path graph with the specified number of vertices.
- Args:
- number_of_vertices: The number of vertices in the path graph. Should be a
positive integer representing the total vertices.
- Returns:
The generated path graph as a PlanarDiagram object with the given number of vertices connected linearly, representing the path structure.