I'm getting an error on a script straight out of the user guide. What am I doing wrong?
import graph_tool.all as gt
print gt.__version__
g = gt.Graph()
g.add_vertex(5)
g.get_vertices()
returns
2.20 (commit f6ef9990, Fri Jan 27 16:40:08 2017 +0000)
Traceback (most recent call last):
File "Untitled.py", line 7, in
g.get_vertices()
AttributeError: 'Graph' object has no attribute 'get_vertices'