[python-uk] Library for (undirected) graphs in Python?
tartley at tartley.com
Tue Jan 25 00:19:49 CET 2011
If you can predict what Python libraries you will depend on, then use
Python 3 if those libraries are already ported to it.
If not, then use Python 2. Python 2.7 is the current (and almost
certainly the last ever) 2.x version.
GraphVis is good for visualising graphs. It produces diagrams like this:
There are several Python bindings or wrappers for GraphViz, four are
Best of luck,
On 24/01/2011 21:04, Russell Cumins wrote:
> Hi Sebastian,
> As far as I am aware the Python 3.x series is where the development of
> the language is going, The devs specifically broke backwards
> compatibility in order to tidy up the language. What this means is
> that there are loads of Python libraries that will not work with it or
> have not been ported to it.
> I would recommend trying Python 2.6 along with the corresponding
> Pygame release for that version. As it just works and is fairly simple
> to learn.
> Kind Regards,
> Russell Cumins
> On 24 January 2011 19:27, Sebastian Komianos <sebkom at nerdvana.gr
> <mailto:sebkom at nerdvana.gr>> wrote:
> Good evening everyone,
> I am a newcomer to Python and I am using it for my dissertation
> (not a PhD, just a Bachelor! :)) project.
> I've reached the point where I need to create a few very basic
> undirected graphs. I spent the last hour or so searching online
> but have so far failed to find a library that works with Python 3.
> NetworkX (http://networkx.lanl.gov/index.html) looked great and is
> quite popular from what I've gathered but its drawing module is
> not Python 3 compatible. Which is a pity because all I wanted is
> some very very basic graphs. All the other libraries I've found so
> far either don't support drawing or are extremely complex for my
> Now, maybe the solution is to use Python 2.6 instead. Before
> starting working on my project I knew nothing about Python, which
> is one of the reasons I chose it over, say, Java, and thought that
> the 3rd version is the way to go. Is it not?
> Thank you very much for your time in advance,
> Sebastian Komianos
> python-uk mailing list
> python-uk at python.org <mailto:python-uk at python.org>
> python-uk mailing list
> python-uk at python.org
Jonathan Hartley Made of meat. http://tartley.com
tartley at tartley.com +44 7737 062 225 twitter/skype: tartley
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the python-uk