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 | |
def plotTSP(path, points, num_iters=1): | |
""" | |
path: List of lists with the different orders in which the nodes are visited | |
points: coordinates for the different nodes | |
num_iters: number of paths that are in the path list | |
""" |