summing up weights for multiple edges in a directed graph

Screenshots, Vectorial Preview and printable exports
Post Reply
sumitk7
Posts: 1
Joined: 21 Jul 2017 19:26

summing up weights for multiple edges in a directed graph

Post by sumitk7 » 22 Jul 2017 12:05

Hello,

I want to confirm if Gephi sums up the weights in case of multiple edges between two nodes in a directed network. In a simple example that i created to check this, it did not. The same is the case for an undirected network.

Can any one please confirm this and advise if there is a way I can get the weights to sumed up. The multiple edges in my network are added at different times and thus i would like to retain them.

Thanks

xptrxptr
Posts: 31
Joined: 21 Dec 2010 21:17

Re: summing up weights for multiple edges in a directed graph

Post by xptrxptr » 28 Jan 2018 11:32

You can save the network in Pajek net format and use Pajek to do it:
Network - Create New Network - Transform - Remove - Multiple Lines - Sum Values

tammybrooks
Posts: 1
Joined: 22 Feb 2018 11:25

Re: summing up weights for multiple edges in a directed graph

Post by tammybrooks » 22 Feb 2018 11:45

xptrxptr, thanks a lot for you advice! But I have another question. How I can sum up weights of two different edges in different graph? Or this is impossible to make it for free? Thanks in advance
Last edited by tammybrooks on 23 Feb 2018 11:03, edited 1 time in total.

User avatar
eduramiba
Gephi Code Manager
Posts: 976
Joined: 22 Mar 2010 15:30
Location: Madrid, Spain

Re: summing up weights for multiple edges in a directed graph

Post by eduramiba » 22 Feb 2018 12:47

You should be able to do this in Gephi 0.9.2+ by importing a file and choose Sum in edges weight strategy, then import the second file and do the same. Repeated edges weights will be accumulated.

Post Reply