Data from a table

Get help with your data
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
testinggephi
Posts:2
Joined:10 Feb 2011 00:14
[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
Data from a table

Post by testinggephi » 10 Feb 2011 03:36

Hello,

I searched for a solution to this seemingly common problem. I read about adjacency list and concatenating data from rows. I have a table with organizations and people. How do I create edges from this kind of a table?

Code: Select all

Org Name| Person ID
---------------------- ---
Org A | 100
Org A | 101
Org A | 102
Org B | 100
Org B | 200
Org C | 300
I guess depending on the format the edges should look like this:

Code: Select all

100 -> 101
100 -> 102
101 -> 100
101 -> 102
102 -> 100
102 -> 101
100 -> 200
or:
100; 101; 102
100; 200

Is there a standard way of doing this? What's the best format for such a data? Thanks for your help.

admin
Gephi Community Manager
Posts:964
Joined:09 Dec 2009 14:41
[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: Data from a table

Post by admin » 10 Feb 2011 09:45

A CSV format encoding an edge list is enough for that: http://gephi.org/users/supported-graph- ... sv-format/

testinggephi
Posts:2
Joined:10 Feb 2011 00:14
[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: Data from a table

Post by testinggephi » 10 Feb 2011 14:18

admin, thanks for reply.

First, I don't know why my message got posted in the specifications sub-forum, I thought I had posted in the data import/export sub-forum.

Second, I had gone through that csv thread before, but I don't see how I can convert that kind of a table in to edges format. It is a big table, and it would be cumbersome and could lead to inaccuracies if we were to do it by hand. There must be some kind of script that could convert such data. (SQL, python, awk, etc)

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