G = nx.Graph()
edges = [(3, 6), (7, 2), (8, 5), (9, 5), (5, 13), (10, 6), (6, 1), (1, 13),
    (11, 2), (2, 13), (12, 4), (4, 13)]
G.add_edges_from(edges)
nx.draw(G)
plt.show()
Рисование линий между парами в Python