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 <[email protected]>

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to