Reputation: 115
I have a tuple of pairs:
pairs=[(3,6),(7,2),(8,5),(9,5),(5,13),(10,6),(6,1),(1,13),(11,2),(2,13),(12,4),(4,13)]
Each pair describes a connection between two points, i.e there's a line between point 3 and point 6.
Currently, doing this:
i=0
for point in pairs:
i+=1
plt.plot(point,(i,i))
plt.show()
is giving me straight lines between each point and its respective destination:
However, I'm looking for connecting these lines together to create a graph of "bridges", something along the lines of:
Thanks!
Upvotes: 7
Views: 5917