Hello everyone,
Perhaps this question is very basic, but I was wondering what is the best way of creating your own graphs (using your own set of data). Is better create graphs using the software interface or creating them in some xml format?
I´ll be very grateful if you could tell me where can i find some examples for this.
Regards,
Gabriel
[SOLVED] How to create a new network from scratch?
-
- Posts:2
- Joined:11 Mar 2010 03:44 [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 create a new network from scratch?
Hi,
I advise you to create graph files with a library. We propose our own lib to generate GEXF files (http://gexf.net/lib/), but you may use other ones creating GraphML, GDF (Guess), GML or .NET (Pajet) files.
NetworkX seems to export GML and Pajet files, but I've not tested it :
http://networkx.lanl.gov/reference/readwrite.pajek.html
http://networkx.lanl.gov/reference/readwrite.gml.html
Regards
I advise you to create graph files with a library. We propose our own lib to generate GEXF files (http://gexf.net/lib/), but you may use other ones creating GraphML, GDF (Guess), GML or .NET (Pajet) files.
NetworkX seems to export GML and Pajet files, but I've not tested it :
http://networkx.lanl.gov/reference/readwrite.pajek.html
http://networkx.lanl.gov/reference/readwrite.gml.html
Regards
-
- Posts:5
- Joined:09 Mar 2010 14:44 [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 create a new network from scratch?
I also use networkX. You can create random graph, if you do not have a "real" data. If you have real data, read from the file, use G.add_node and G.add_edge to create a graph in networkX, then export it into a .gml file using nx.write_gml(G,"test.gml"). Cheers.
-
- Posts:2
- Joined:11 Mar 2010 03:44 [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 create a new network from scratch?
Ok, thanks for your quick answers