On Tue, Mar 26, 2013 at 10:19 PM, Scheibmeir, John <[email protected]>wrote:

> Could someone please provide an example of igraph_simplify where the
> weights of the edges are saved as an attribute to the modified graph's
> edges?
>

Hi John,

look at
https://github.com/igraph/igraph/blob/master/examples/simple/cattributes4.c(also
comes with igraph), the first igraph_simplify() call here does
exactly what you want, I believe. (Plus some extra that you can remove.)

Gabor

[...]
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to