|
From: | Gábor Tóth |
Subject: | [igraph] Bidirectional edges in Python |
Date: | Mon, 20 Jan 2014 12:02:27 +0000 |
from igraph import *
g = Graph()
g.to_directed()
g.add_vertex('kaka')
g.add_vertex('hah')
g.add_edges(("kaka","hah"))
g.add_edges(("hah","kaka"))
visual_style = {}
visual_style["vertex_label"] = g.vs["name"]
layout = g.layout("kamada_kawai")
plot(g, **visual_style)
print g.summary()
Thanks,
Gabor
[Prev in Thread] | Current Thread | [Next in Thread] |