introduction; use of NetworkX with Django

1,184 views
Skip to first unread message

Edward Vielmetti

unread,
Jan 27, 2009, 10:14:23 AM1/27/09
to networkx-discuss
I was referred here from the SOCNET mailing list, good to see a
robust Python network modeling tool.

I'm wondering if anyone has interfaced NetworkX with the Django
framework - didn't see any of the discussion on the list archives,
but there might be more details that someone could share.

thanks

Edward Vielmetti, Ann Arbor MI
edward.v...@gmail.com

Dan Schult

unread,
Jan 27, 2009, 10:35:57 AM1/27/09
to networkx...@googlegroups.com
> I'm wondering if anyone has interfaced NetworkX with the Django
> framework - didn't see any of the discussion on the list archives,
> but there might be more details that someone could share.
>
> thanks
> Edward Vielmetti, Ann Arbor MI
> edward.v...@gmail.com

Are you thinking about interfaces that enable NetworkX to generate
content for Django pages, or interfaces that analyze Django web page
structure/design using NetworkX?
Dan

Mauro Cavalcanti

unread,
Jan 27, 2009, 12:49:21 PM1/27/09
to networkx...@googlegroups.com
Dear ALL,

This would also be of much interest to me.

Best regards,

2009/1/27 Edward Vielmetti <edward.v...@gmail.com>:
--
Dr. Mauro J. Cavalcanti
Ecoinformatics Studio
P.O. Box 46521, CEP 20551-970
Rio de Janeiro, RJ, BRASIL
E-mail: maur...@gmail.com
Web: http://studio.infobio.net
Linux Registered User #473524 * Ubuntu User #22717
"Life is complex. It consists of real and imaginary parts."

Edward Vielmetti

unread,
Jan 27, 2009, 5:12:54 PM1/27/09
to networkx...@googlegroups.com
Dan -

I think I'm thinking of a system where NetworkX would manipulate
and analyze data that's stored in a Django model, as well as a
system where those results are subsequently displayed on pages
within Django.

The particular system I have in mind is this Google Transit Format
transit information browser

http://xca2.com/stuff/aata/browse/

currently populated with Ann Arbor Transportation Authority routes
that I had to extract with a FOIA request; some obvious transform
of some kind uses NetworkX to pull from this system, do network
analysis, and then redisplay within the system or store a new table
derived from the existing tables.

thanks

Ed
--
Edward Vielmetti
Ann Arbor, MI

+1 734 330 2465

Aric Hagberg

unread,
Jan 28, 2009, 5:45:44 PM1/28/09
to networkx...@googlegroups.com
On Tue, Jan 27, 2009 at 05:12:54PM -0500, Edward Vielmetti wrote:
>
> Dan -
>
> I think I'm thinking of a system where NetworkX would manipulate
> and analyze data that's stored in a Django model, as well as a
> system where those results are subsequently displayed on pages
> within Django.

I don't know if anyone has done this yet but it is certainly possible
and might not be very hard.

Since the Django data models have a Python interface you should be
able to just query whatever data you like and stick that into a NetworkX
graph.

If you want to use the Matplotlib drawing part of NetworkX there is
an example of how to dynamically generate charts with Django at
http://scipy.org/Cookbook/Matplotlib/Django
This could be adopted to use the NetworkX drawing functions instead
of "plot()".

Aric


Reply all
Reply to author
Forward
0 new messages