[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
Gephi forums •Ranking Number of Neighbours
Page 1 of 1

Ranking Number of Neighbours

Posted: 08 Nov 2017 14:45
by Tatteo
Hello,

Apologies if this question has already been asked. I have looked around, but cannot find any other instances.

I am having issues analysing a dataset. In the dataset I have some instances of multiple edges connecting the same two nodes. My problem, multiplied by a few thousand rows, is that I have something like:

A - B
B - A
A - C
C - B

What I would like to calculate is the number of neighbours that each node has.

I thought I could just calculate their degree, but this is influenced by the fact that some nodes are linked twice. So A's degree would be ranked 3 when it actually has 2 neighbours.

So my question is: is there a way to
a) rank nodes by number of neighbours instead of by degree
OR
b) merge duplicate edges with nodes in opposite order.

Thanks a lot!

Re: Ranking Number of Neighbours

Posted: 08 Nov 2017 14:51
by eduramiba
Yeah, when you import the file, during import report you can choose the edges merge strategy

Re: Ranking Number of Neighbours

Posted: 10 Nov 2017 12:14
by Tatteo
Thanks, it works!

Daily lesson: make sure you are running the latest version of the software. :)

Re: Ranking Number of Neighbours

Posted: 10 Nov 2017 12:32
by eduramiba
Great! Yeah I forgot to mention you need 0.9.2