Hi, I am trying to import a dynamic graph where the edge weights vary dynamically. (To be used with ForceAtlas2 layout). However, when I try to import the edges table with a dynamic "Weight" column, the importer forces me to import it as a Float (not a dynamic float), and then after imported, all the weights are just set to 1. Is this a bug, or am I doing things wrong? Any help is appreciated.
Here are the first few rows of my file:
"Source","Target","Type","TimeInterval","Weight"
"VNG0001H","VNG0002G","Undirected","<[1,1];[2,2]>","<[1,1,0.019];[2,2,0.016]>"
"VNG0001H","VNG0003C","Undirected","<[1,1];[2,2]>","<[1,1,0.013];[2,2,0.011]>"
"VNG0001H","VNG0006G","Undirected","<[1,1];[2,2]>","<[1,1,0.003];[2,2,0.003]>"
"VNG0001H","VNG0008G","Undirected","<[1,1];[2,2]>","<[1,1,0.011];[2,2,0.010]>"
"VNG0001H","VNG0009G","Undirected","<[1,1]>","<[1,1,0.002]>"
"VNG0001H","VNG0013C","Undirected","<[1,1];[2,2]>","<[1,1,0.007];[2,2,0.008]>"
"VNG0001H","VNG0039H","Undirected","<[1,1];[2,2]>","<[1,1,0.004];[2,2,0.006]>"
"VNG0001H","VNG0040C","Undirected","<[1,1];[2,2]>","<[1,1,0.002];[2,2,0.005]>"
"VNG0001H","VNG0041C","Undirected","<[2,2]>","<[2,2,0.003]>"
"VNG0001H","VNG0102C","Undirected","<[1,1]>","<[1,1,0.003]>"
[SOLVED] dynamic weights and spreadsheet import
- 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: dynamic weights and spreadsheet import
Hi,
The problem is that default gephi workspaces have the Weight column as a simple Float. This is the only column that is dynamic or not depending on the workspace.
Maybe a button in data laboratory to convert the weight column to dynamic would be useful.
But you can do the following:
Load an empty dyanimc graph. (You can use the attached gexf file to do that)
Then just import the csv file.
I tested your file and it works this way.
But please note that your edge time intervals look like this
This means that the edges exist in the instants 1.0 and 2.0 of time.
If you want them to exist from 1.0 to 2.0, then just write <[1.0, 2.0]>
Eduardo
The problem is that default gephi workspaces have the Weight column as a simple Float. This is the only column that is dynamic or not depending on the workspace.
Maybe a button in data laboratory to convert the weight column to dynamic would be useful.
But you can do the following:
Load an empty dyanimc graph. (You can use the attached gexf file to do that)
Then just import the csv file.
I tested your file and it works this way.
But please note that your edge time intervals look like this
Code: Select all
<[1.0, 1.0]; [2.0, 2.0]>
If you want them to exist from 1.0 to 2.0, then just write <[1.0, 2.0]>
Eduardo
- Attachments
-
- empty-dynamic.gexf
- (662Bytes)Downloaded 462 times
-
- Posts:2
- Joined:07 Feb 2012 01:40 [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 weights and spreadsheet import
Thanks, pre-loading that file worked like a charm.
Perhaps a feature request would be to include a "Dynamic" option for the "Import Spreadsheet" option in future versions.
And thanks for pointing out the issue in my time format.
Perhaps a feature request would be to include a "Dynamic" option for the "Import Spreadsheet" option in future versions.
And thanks for pointing out the issue in my time format.