[SOLVED] How to create a new network from scratch?

Get help with your data
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
gabriel.riofrio
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
[SOLVED] How to create a new network from scratch?

Post by gabriel.riofrio » 11 Mar 2010 04:14

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

admin
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?

Post by admin » 11 Mar 2010 11:06

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

mikebites
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?

Post by mikebites » 11 Mar 2010 12:24

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.

gabriel.riofrio
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?

Post by gabriel.riofrio » 12 Mar 2010 06:16

Ok, thanks for your quick answers :)

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