What graph editor/viewer to use with networkx?

753 views
Skip to first unread message

Lars Ruoff

unread,
Jul 11, 2011, 4:34:20 AM7/11/11
to networkx-discuss
Hi,

i have a need for visualizing graphs frequently, modifying some node
attribute values by hand now and then, then running some algorithms
over it (using Python/networkx) and visualizing again etc.
(This is to optimize flow algorithms by visualizing different steps of
the time evolution.)
I don't want to spend much time on visualization with programming
everything on my own.
What would you recommend as a graph editor and drawing app in this
situation?
What do you use?
(Free apps preferred)
The app must probably write the graph to file, and the Python script
read it in and vice versa. What interchange format is best?

best regards,
Lars R.

Loïc Séguin-Charbonneau

unread,
Jul 11, 2011, 8:46:59 AM7/11/11
to networkx...@googlegroups.com
Hi Lars,

2011/7/11 Lars Ruoff <lars....@gmail.com>:


> Hi,
>
> i have a need for visualizing graphs frequently, modifying some node
> attribute values by hand now and then, then running some algorithms
> over it (using Python/networkx) and visualizing again etc.

Depending on your visualization needs, networx.draw() might be all you
need. Just define a pos list so that your nodes don't move between
runs.

> (This is to optimize flow algorithms by visualizing different steps of
> the time evolution.)

There are some flow algorithms in networkx.algorithms.flow.


> I don't want to spend much time on visualization with programming
> everything on my own.
> What would you recommend as a graph editor and drawing app in this
> situation?

I'm not exactly sure what you mean by a graph editor: do you want to
graphically modify the graph? If so then Gephi might be a good tool
(http://gephi.org/). Otherwise, you can manipulate the graph
programatically using NetworkX.

> What do you use?
> (Free apps preferred)
> The app must probably write the graph to file, and the Python script
> read it in and vice versa. What interchange format is best?

NetworkX support a wide variety of formats (GraphML, Pajek, edge list,
etc.). Most of these formats can be understood by other programs,
including (I think) Gephi.


--
Loïc Séguin-Charbonneau
devio.us/~loicseguin/

Lars Ruoff

unread,
Jul 11, 2011, 9:27:39 AM7/11/11
to networkx-discuss
Hi Loïc,
Thanks!

Gephi looks nice.
I only knew Graphviz (http://graphviz.org/) so far.

Yes, i want to graphically modify the graph (mainly positions).
But also edit attribute values of nodes. Does Gephi support arbitrary
user attributes? Will have a look.

Other comments welcome.

Lars R.


On Jul 11, 2:46 pm, Loïc Séguin-Charbonneau <loicseg...@gmail.com>
wrote:
> Hi Lars,
>
> 2011/7/11 Lars Ruoff <lars.ru...@gmail.com>:

Ben Edwards

unread,
Jul 11, 2011, 10:05:46 AM7/11/11
to networkx...@googlegroups.com
Gephi does allow you to edit the attributes of nodes, but converting back and forth between gephi and networkx can get a little tedious, even with the read/write_gexf function.

Ben

--
You received this message because you are subscribed to the Google Groups "networkx-discuss" group.
To post to this group, send email to networkx...@googlegroups.com.
To unsubscribe from this group, send email to networkx-discu...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/networkx-discuss?hl=en.


Reply all
Reply to author
Forward
0 new messages