creating DynamicGraph with libgexf

General support of the libgexf dynamic library.
Post Reply
paul
Posts: 31
Joined: 31 Mar 2010 08:44

creating DynamicGraph with libgexf

Post by paul » 31 Mar 2010 09:40

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

admin
Gephi Community Manager
Posts: 964
Joined: 09 Dec 2009 14:41

Re: creating DynamicGraph with libgexf

Post by admin » 31 Mar 2010 12:34

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.

paul
Posts: 31
Joined: 31 Mar 2010 08:44

Re: creating DynamicGraph with libgexf

Post by paul » 31 Mar 2010 14:26

ok thanks for the reply.

I will think about a workaround..

Paul

User avatar
mbastian
Gephi Architect
Posts: 728
Joined: 10 Dec 2009 10:11
Location: San Francisco, CA

Re: creating DynamicGraph with libgexf

Post by mbastian » 31 Mar 2010 22:02

Hi Paul, please let us know if you find some good way! =)

paul
Posts: 31
Joined: 31 Mar 2010 08:44

Re: creating DynamicGraph with libgexf

Post by paul » 02 Apr 2010 09:32

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

paul
Posts: 31
Joined: 31 Mar 2010 08:44

Re: creating DynamicGraph with libgexf

Post by paul » 04 Aug 2010 15:35

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.

User avatar
mbastian
Gephi Architect
Posts: 728
Joined: 10 Dec 2009 10:11
Location: San Francisco, CA

Re: creating DynamicGraph with libgexf

Post by mbastian » 07 Aug 2010 09:03

Great! I'm sure there is many python addict interested by this lib and would contribute. What dynamic features do you support ? Slices? Attributes?

unidesigner
Posts: 2
Joined: 12 Aug 2010 14:47

Re: creating DynamicGraph with libgexf

Post by unidesigner » 12 Aug 2010 14:58

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

paul
Posts: 31
Joined: 31 Mar 2010 08:44

Re: creating DynamicGraph with libgexf

Post by paul » 20 Aug 2010 03:38

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

unidesigner
Posts: 2
Joined: 12 Aug 2010 14:47

Re: creating DynamicGraph with libgexf

Post by unidesigner » 28 Aug 2010 14:30

Hi,

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

Stephan

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests