Documentation/examples
I am sorry but I had issues with almost every step in the installation instructions and have been unable to get even the simplest example from the documentation to work. What exactly am I missing here?
from graph_tool.all import * # FYI import * is not a python convention
g = Graph()
ug = Graph(directed=False)
ug = Graph()
ug.set_directed(False)
assert ug.is_directed() == False
v1 = g.add_vertex()
v2 = g.add_vertex()
graph_tool.draw.graph_draw(g, vertex_text=g.vertex_index, vertex_font_size=18,
output_size=(200, 200), output="two-nodes.png")
This error is one of many encountered with examples:
AttributeError: module 'graph_tool.draw' has no attribute 'graph_draw'
I am running commit d4154c6c on Anaconda python env...
- Platform: Linux-5.3.0-40-generic-x86_64-with-debian-buster-sid
- Python: 3.7.6 (default, Jan 8 2020, 19:59:22) [GCC 7.3.0]
- CPU: x86_64: 8 cores
- Memory: 62.8 GB
- mne: 0.20.dev0
- numpy: 1.18.1 {blas=mkl_rt, lapack=mkl_rt}
- scipy: 1.4.1
- matplotlib: 3.1.3 {backend=module://backend_interagg}
- sklearn: 0.23.dev0
- numba: 0.48.0
- nibabel: 3.0.1
- cupy: Not found
- pandas: 1.0.1
- dipy: 1.2.0dev
- mayavi: 4.7.2.dev0 {qt_api=pyqt5, PyQt5=5.9.2}
- pyvista: 0.22.4
- vtk: 8.1.2