[Top][All Lists]

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

Re: [igraph] collapse edges

From: Gábor Csárdi
Subject: Re: [igraph] collapse edges
Date: Mon, 5 May 2014 00:37:38 -0400

Call simplify() to sum up the edges, and then divide by the degree of the source vertex.


On Mon, May 5, 2014 at 12:18 AM, Ragia Ibrahim <address@hidden> wrote:
Dear group,
kindly how can i collapse edges on the wight sum over node degree, for each redundant relation between  two nodes.

example if i have relation between
node1 and node 2                           weight 1 
node 1 and node 2 (again)             weight 1
node 2 and node1                           weight 1 
 node 2 and node 3

how can i get

node1 node 2 weight 2/3                   #number of redundant   edges/first node degree

node 2 and node1  weight 1/4


igraph-help mailing list

reply via email to

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