Thanks!
On Sun, Mar 27, 2016 at 6:11 PM, Tiago de Paula Peixoto tiago@skewed.de wrote:
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
graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool