Hello,
graph_tool is installed on ubuntu trusty according to the documentation and
when the following code is run from an ipython cell, I have:
import graph_tool as gt
mG = gt.Graph(directed = False)
v1 = mG.add_vertex()
v2 = mG.add_vertex()
mG.add_edge(v1,v2)
print gt.__version__
gt.graph_draw(mG)
tiago
(Tiago Peixoto)
2
Hello,
graph_tool is installed on ubuntu trusty according to the documentation and
when the following code is run from an ipython cell, I have:
import graph_tool as gt
mG = gt.Graph(directed = False)
v1 = mG.add_vertex()
v2 = mG.add_vertex()
mG.add_edge(v1,v2)
print gt.__version__
gt.graph_draw(mG)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-4-a81ac2c86e8f> in <module>()
4 mG.add_edge(v1,v2)
5 print gt.__version__
----> 6 gt.graph_draw(mG)
AttributeError: 'module' object has no attribute 'graph_draw'
You should have done:
import graph_tool.all as gt
at the beginning.
2.2.30 (commit 8ff4701a, Tue Mar 25 13:40:40 2014 +0100)
Note that the newest version is 2.2.31.
I also tried to build graph-tool from source but the compilation failed due
to a lack of virtual memory (1.22 Go RAM and 1.85 Go swap)
You need around 4GB RAM to compile graph-tool.
Best,
Tiago