Since my dataset is in txt file and the specific manifestation like this:
42051169 51923155 0
42051169 51923155 0.3
42051169 64029985 0.5
.........
so what can i do to meet the Gephi's requirement.Thank you!
[SOLVED] how to convert a txt file to gexf file?
-
- Posts:3
- Joined:09 Jun 2011 04: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
-
- 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: how to convert a txt file to gexf file?
What is the meaning of the columns?
-
- Posts:3
- Joined:09 Jun 2011 04: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
Re: how to convert a txt file to gexf file?
It is about a social network dataset.To be specific,the first two columns give two participants' ID number,and last column lists the two users' relationship,which can be regarded as the uncertain edge existing probability of the graph.admin wrote:What is the meaning of the columns?
-
- 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: how to convert a txt file to gexf file?
Ok so you should create a DL file to put the edge list.
The last column is can be seen as the "weight" of the edges. I advise to multiply the probabilities by 100 so that the layouts can use them properly.
So you'll have a file like this, given the 3 nodes of your example:
The last column is can be seen as the "weight" of the edges. I advise to multiply the probabilities by 100 so that the layouts can use them properly.
So you'll have a file like this, given the 3 nodes of your example:
Code: Select all
dl
format=edgelist1
n=3
data:
42051169 51923155 0
42051169 51923155 30
42051169 64029985 50
Re: how to convert a txt file to gexf file?
Hi,
To complement what Sebastien said: once you have your dl file: open it in Gephi, then you can save it as a gexf file.
Best,
Clement
To complement what Sebastien said: once you have your dl file: open it in Gephi, then you can save it as a gexf file.
Best,
Clement