This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
def graph_editor(grid=True, grid_N = 12): | |
""" | |
This function enables to draw a graph manually using | |
Matplotlib's interactive plotting capabilites. | |
In a first phase you are asked to place the nodes | |
(left-click to place a node, right-click to remove |