[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
Gephi forumsPlease post new questions on facebook group too (https://www.facebook.com/groups/gephi) 2011-06-07T21:19:24+01:00 https://forum-gephi.org/app.php/feed/topic/1184 2011-06-07T21:19:24+01:002011-06-07T21:19:24+01:00 https://forum-gephi.org/viewtopic.php?t=1184&p=3689#p3689 <![CDATA[Re: generating networks from data matrices]]>

Statistics:Posted by khavens — 07 Jun 2011 21:19


]]>
2011-06-07T20:37:33+01:002011-06-07T20:37:33+01:00 https://forum-gephi.org/viewtopic.php?t=1184&p=3687#p3687 <![CDATA[Re: generating networks from data matrices]]> ABCD
A 0110
B 1000
C 1101
D 0100

Can be represented in one of two ways. You can either only map the predation connections, which could be outputed as a simple CSV:

A,B,C
B,A
C,A,B,D
D,B

(Remember, Gephi's CSV import expects source, target, target, target, target, etc for each line)

Or you can map each type of connection with the predator/prey distinction as an edge type:
Source Target Type
A, A, 0
A, B, 1
A, C, 1
A, D, 0
B, A, 1
B, B, 0
B, C, 0
B, D, 0

How you get there from your data depends on its actual format and the method you're most comfortable with using to transform data. You can write this as a script, or use a tool like Data Wrangler or even do it in Excel if it's not too many columns.

Statistics:Posted by elijah — 07 Jun 2011 20:37


]]>
2011-06-07T20:15:39+01:002011-06-07T20:15:39+01:00 https://forum-gephi.org/viewtopic.php?t=1184&p=3686#p3686 <![CDATA[Re: generating networks from data matrices]]>
Write your matrix as a DL file (see this page), and load the data as explained in the Quick Start tutorial.

Cheers!

Statistics:Posted by admin — 07 Jun 2011 20:15


]]>
2011-06-07T19:08:11+01:002011-06-07T19:08:11+01:00 https://forum-gephi.org/viewtopic.php?t=1184&p=3685#p3685 <![CDATA[[SOLVED] generating networks from data matrices]]>
The software seems intuitive and useful, however, my data consist of matrices of 0 and 1 values between predators and their prey (1 = predation, 0 = lack of predation). So for example in a very simple case with two predators (species A, B) and two prey eaten by them (C, D), the data matrix would look like this and exists as a .txt file:

A B

C 1 1
D 1 1

My actual matrices are much more complex, with up to 50 species and hundreds of links.

How do I bring data like this into Gelpi? Or can I? Is there some process that I must do first to create the network diagrams?

Statistics:Posted by khavens — 07 Jun 2011 19:08


]]>