Small project for the Discrete Mathematics course.
Developed using the Python Programming Language 🐍
The main purpose of this program is to check if a given sequence is a graphical sequence and represent it using nodes and edges.
Graphical representation of a sequence.
Use the package manager pip to install graphviz.
pip install graphviz
import graphviz
# Creates Graph
g = graphviz.Graph(format='png')
# Adds a new node to the graph
g.node("node1")
# Creates a new connection between node1 and node2
g.edge("node1","node2")
# Generates graph output file
g.view()