Re: [graph-tool] Ordering of edges returned by EdgePropertyMap.getArray()

2020-05-07 Thread Ioana Hulpus
Beautiful! Thanks! On Thu 7. May 2020 at 15:59, Tiago de Paula Peixoto wrote: > Am 07.05.20 um 11:33 schrieb Ioana K-Hulpus: > > Can I rely on setting the value of an > > edge E in A at position A[g.edge_index[E]] ? > > Yes. > > -- > Tiago de Paula Peixoto > > __

Re: [graph-tool] Ordering of edges returned by EdgePropertyMap.getArray()

2020-05-07 Thread Tiago de Paula Peixoto
Am 07.05.20 um 11:33 schrieb Ioana K-Hulpus: > Can I rely on setting the value of an > edge E in A at position A[g.edge_index[E]] ? Yes. -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mailing list grap

[graph-tool] Ordering of edges returned by EdgePropertyMap.getArray()

2020-05-07 Thread Ioana K-Hulpus
Hi, I am trying to set a property (my_prop) for all the edges of a graph, where the property values for all edges are stored in an array A. My plan is to use my_prop.get_array()[:] = A. Now, in what order do the values need to be in A to make sure each value goes to the correct edge? In other wor