27 Mar
2016
27 Mar
'16
10:11 p.m.
On 27.03.2016 07:08, JHickey wrote:
But with the following example, I get the error below:
elist2 = np.array([[0,1, 1], [1, 2, 0]]) #edge list with edge property map value in 3rd column g = gt.Graph() my_eprop = g.new_edge_property('bool') g.add_edge_list(elist2, eprops=my_eprop)
The 'eprops' parameter expects a list. The last line should have been: g.add_edge_list(elist2, eprops=[my_eprop]) Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>