[graph-tool-tickets] [graph-tool] Ticket #121: Adding a mechanism to copy a vector property to its out edges

graph-tool webmaster at skewed.de
Mon Dec 17 14:21:58 UTC 2012


#121: Adding a mechanism to copy a vector property to its out edges
new enhancement
---------------------------------------------------------------------
Reporter: guillaume at mitotic-machine.org
Owner: tiago peixoto
Priority: normal
Milestone: (None)
---------------------------------------------------------------------
The idea is to be able to do something like the following without using a python loop:

eprop = g.new_edge_propery
for e in g.edges():
    eprop[e] = vprop[e.source()]


Maybe the function could allow to chose between copying from source or from target...



--
Ticket URL: <URL:http://graph-tool.skewed.de/ticket/121>
graph-tool <URL:http://graph-tool.skewed.de/>
An efficient python module for graph analysis and manipulation.


More information about the graph-tool-tickets mailing list