[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
Gephi forums •creating DynamicGraph with libgexf
Page 1 of 1

creating DynamicGraph with libgexf

Posted: 31 Mar 2010 09:40
by paul
Hi all,

According to documentation here is how to create directed or nondirected graph :

Code: Select all

libgexf::DirectedGraph& dgraph = gexf->getDirectedGraph();
libgexf::DirectedGraph& ugraph = gexf->getUndirectedGraph();
How about Dynamic Graph ?
Of course a DynamicGraph has to be directed or not.

So I guess the good way is :

Code: Select all

libgexf::DirectedGraph& ugraph = gexf->getUndirectedGraph();
ugraph.initGraphMode("dynamic"); 
But will that make ugraph be a DynamicGraph object ?


Paul

Re: creating DynamicGraph with libgexf

Posted: 31 Mar 2010 12:34
by admin
Hi,

Dynamic graphs are not supported, due to major refactoring needed to implement it. As I stopped my contribution to this project, it won't be supported unless further fundings / new developer arrives.

Re: creating DynamicGraph with libgexf

Posted: 31 Mar 2010 14:26
by paul
ok thanks for the reply.

I will think about a workaround..

Paul

Re: creating DynamicGraph with libgexf

Posted: 31 Mar 2010 22:02
by mbastian
Hi Paul, please let us know if you find some good way! =)

Re: creating DynamicGraph with libgexf

Posted: 02 Apr 2010 09:32
by paul
Well I just wrote a small clone of libgexf in Python.
It's quick and durty and only focused on writing gexf but well it supports dynamic.

I am testing it right now (see http://forum.gephi.org/viewtopic.php?f=4&t=111 and http://forum.gephi.org/viewtopic.php?f=4&t=112)

As soon as it's tested enough I'll release it here although it's far less complete as existing libgexf it's working for dynamic and any python addict (included me) could extend gexf features support in future.

I should have modified the existing libgexf but I could write a new one in Python in short time where C++ would have taken me ages to change and understand, sorry about that.

I'll let you know..

Paul

Re: creating DynamicGraph with libgexf

Posted: 04 Aug 2010 15:35
by paul
Hi all,

I finally released my python library to read and write gexf file.

repository is here : http://github.com/paulgirard/pygexf
package in pypi : http://packages.python.org/pygexf/users.html
doc (to be improved...) : http://pypi.python.org/pypi/pygexf/0.2

one requirements : lxml (see doc)

Testing and doc are not mature enough but it's a good lib to play with gexf.
Feel free to extend it and share your work.
I will go on extend features following project.

hope this will help,

Paul

ps : Big thanks to gexf / gephi team and also to people from lxml who helped about installing lxml on Mac Os X.

Re: creating DynamicGraph with libgexf

Posted: 07 Aug 2010 09:03
by mbastian
Great! I'm sure there is many python addict interested by this lib and would contribute. What dynamic features do you support ? Slices? Attributes?

Re: creating DynamicGraph with libgexf

Posted: 12 Aug 2010 14:58
by unidesigner
I'd like to use/contribute PyGexf. Paul, have you considered using the NetworkX graph classes instead
of your custom class? Are you going to work on this package more?

Unidesigner

Re: creating DynamicGraph with libgexf

Posted: 20 Aug 2010 03:38
by paul
hi there,

i am currently in china in poor internet connection uptime and struggling with proxy to access many blocked websites like gephi.org ;-)

Well yes I thought that I could use an existing python graph lib but i hadn't time to make a clearer plan. My previous idea was just to be close to the previous libgexf.

I am developing some more graph utilities using python for others purposes (issuecrawler to navicrawler utility) and I think using a common graph lib could be a nice idea to glue those different tools.

I am glad to hear you'd like to contribute and you're more than welcome.
For the how it's up to you, but a cool way to start things up could be to draft a proposition of refactoring based on the mentioned lib ? or you start directly by setting a new branch and send me a push request ? Depends if like better writing soft architecture or code ;-)

hope to work with you on this soon,

bye

Paul

ps: I'll out of internet for about a week

Re: creating DynamicGraph with libgexf

Posted: 28 Aug 2010 14:30
by unidesigner
Hi,

See discussion on NetworkX group: http://groups.google.com/group/networkx ... 843de30bd1

Stephan