What is an effective way to plot a list of coordinates in the form [(x1,y1),(x2,y2)], where each pair of coordinates is connected by a line (as shown below). I'd like to avoid use of non-core packages (core being pandas, matplotlib, numpy, ...)
Example:
c = [[(0, 4), (1, 3)],
[(0, 4), (1, 5)],
[(1, 3), (2, 2)],
[(1, 3), (2, 4)],
[(1, 5), (2, 4)],
[(1, 5), (2, 6)],
[(2, 2), (3, 1)],
[(2, 2), (3, 3)],
[(2, 4), (3, 3)],
[(2, 4), (3, 5)],
[(2, 6), (3, 5)],
[(2, 6), (3, 7)]]
to be plotted as (with labels):


(0, 4)and(2, 4).https://github.com/erocarrera/pydot[(0,4),(2,4)], so we do not connect it with a line :) However, there is a pair[(0, 4), (1, 3)], so we do connect it (as shown). Should be fairly straight forward, but let me know if further clarity is needed.(1, 5)does not connect to(2, 4)in the data but it is in the plot.