This program defines a class Petersen that represents the Petersen graph, which is a small, non-planar, symmetrically regular graph. It takes input from the user for the number of vertices and absolute difference between inner vertices, and then draws the graph using networkx and matplotlib.
To use this program, you will need Python 3.x and the following packages:
To install these packages, run the following command: pip install networkx matplotlib. To run the program, run the following command: python petersen.py
You will be prompted to enter the number of vertices and the absolute difference between inner vertices. The program will then draw the Petersen graph using networkx and matplotlib.
This program is licensed under the MIT License. See the LICENSE file for details.
This program was created by Raj Verma on 17/02/2023.