Edgelist with multiple edges

Extensions and customization
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
martinusdk
Posts:4
Joined:05 Aug 2010 11:29
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Edgelist with multiple edges

Post by martinusdk » 16 Aug 2012 22:04

Hi

I have a large email dataset. I have an edgelist with a list of email senders but there are multiple receivers for each email. How can I import this to Gephi? As far as I have tried I only get the sender and ONE Receiver into the system pr. mail (observation).

Like this:

Sender (A) - Receiver 1, Receiver 2
Sender (B) - Receiver 2
Sender (C) - Receiver 1, Receiver 2, Receiver 3

Br Jens

User avatar
eduramiba
Gephi Code Manager
Posts:1064
Joined:22 Mar 2010 15:30
Location:Madrid, Spain
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Edgelist with multiple edges

Post by eduramiba » 17 Aug 2012 15:40

Hi,
Are you using Import spreasheet in data laboratory or Open - File - CSV?
Import spreasheet reads only 1 edge per line, while CSV can define more than one.

So, your correct edges in CSV would be:

Code: Select all

"Sender (A)","Receiver 1","Receiver 2"
"Sender (B)","Receiver 2"
"Sender (C)","Receiver 1","Receiver 2","Receiver 3"
Quotes are necessary so the parser knows that the spaces are not separators. Also, remove trailing whitespaces.

Eduardo

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable