29 May
2015
29 May
'15
3:28 p.m.
This is python 2.7 and graph-tool 2.2.38_0 Code:
import graph_tool as gt
g = gt.Graph() g.set_directed(False) v0 = g.add_vertex() v1 = g.add_vertex() e01 = g.add_edge(v0,v1) v = g.vertex(0) [e for e in v.out_edges()] [<Edge object with source '0' and target '1' at 0x104d110e8>] [e for e in v.in_edges()] Segmentation fault: 11