Dynamic Node Size

Evolution and dynamics on networks in Gephi: UI, data formats, algorithms...
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
jbreugelmans
Posts:1
Joined:09 Dec 2013 10:32
[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
Dynamic Node Size

Post by jbreugelmans » 09 Dec 2013 10:35

Hi, I am new to Gephi and followed the basic instruction tutorials.
However, I am beating my head against the wall for the project I would like to achieve...I hope you can give me advice on the setup of the data and how the model can be constructed.
The project:
I want to visualize departments (as nodes) that ask for resources from each other over time. These resource requests are nodes as well, and I want to distinguish them based on simple labels.
Now here is the tricky part:
The size of the departments is dependent on the number of hours requested. And since the departments make these requests every day, the size changes every day.

My setup
I have created a project that has been setup as a Dynamic Graph, so there is a timeline.
The structure of the nodes is:
ID
Label
NodeType
StartDate
EndDate
Score

The structure of the Edges is:
Source
Target
Label

Now here is the thing: how do I make the size of the nodes change for every day? I have one full year of data, so how do I need to enter 365 “records” for each department?
I have looked at the option to create static files per day (based on the example: https://wiki.gephi.org/index.php/Import_Dynamic_Data) but I don`t know how to replicate the dataset (how do you import the xml files in the example? And how do your append separate time frames for each year?)

I found this explanation, but I have no clue where to start:
http://wiki.gephi.org/index.php/Toolkit ... atic_files

I hope you can help me out with this challenge.

User avatar
seinecle
Gephi Community Support
Posts:546
Joined:08 Feb 2010 16:55
Location:Lyon, France
Contact:

Re: Dynamic Node Size

Post by seinecle » 09 Dec 2013 15:15

Hi,
Sorry I don't have much time so that's a concise reply.
I recently ran in the same issue. Solution was use the Gexf4J library to generate the dynamic graph in Gexf format. You can then read the gexf you generated with the Gexf Toolkit.
Example of how to create a dynamic network with Gexf4J:
https://github.com/francesco-ficarola/g ... Graph.java

But this example just shows how to create nodes and edges that appear and disappear, not how to change their attribute values in time. I worked that out. This is an ugly and hard to read Java class because I did not intend to publish it, but you might still find it useful. I put an anchor at line 290 which shows some crucial lines to get going:
https://github.com/seinecle/Cartels/blo ... .java#L290

Best,

Clement

newuser
Posts:2
Joined:25 Aug 2014 03:03
[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: Dynamic Node Size

Post by newuser » 27 Aug 2014 09:39

Hi,

I've similar dataset with yours.
But I'm new to Gephi and try to figure out how to made the node appear and disappear through the time line.
And, also make the size of the node change through the timeline.
I've been trying this for two weeks with no solutions.
It will be great if some one could help.
Thank you.

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