igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] seeking example usage of igraph_simplify for C


From: Gábor Csárdi
Subject: Re: [igraph] seeking example usage of igraph_simplify for C
Date: Tue, 26 Mar 2013 22:24:44 -0400

On Tue, Mar 26, 2013 at 10:19 PM, Scheibmeir, John <address@hidden> 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

[...]

reply via email to

[Prev in Thread] Current Thread [Next in Thread]