Personal tools
You are here: Home log python networkx
Document Actions

networkx

a graph/network python package that stops the development of many similar packages

2006-03-24 installation
download
source code from http://sourceforge.net/projects/networkx/, or(2006-11-15) svn co https://networkx.lanl.gov/svn/networkx/trunk networkx
uncompress
tar
install
python setup.py install --home=/tmp/networkx (the home directory could be anything to hold data temporarily)
library
mv /tmp/networkx/lib/python/networkx/ /usr/local/lib/python2.3/site-packages/
doc
mv /tmp/networkx/share/doc/networkx-0.28/ (somewhere)
2006-11-15
The other way easy to install is to copy the networkx directory already installed somewhere because all codes are in python.
2007-09-18 plot
check section
2007-09-18 access to edge data for class XGraph
XGraph is for graphs with weighted edges. To access or change the weight of an edge (i.e. (a,b) in graph g), g.adj[a][b] and g.adj[b][a]. You have to change both if you want to change its weight.

bug in paths.py

Posted by crocea at 2006-04-03 15:31
In shortest_path_length(), "nextlevel.update(G.neighbors(v,with_labels=True)) # add neighbors of v" can't run because update() requires dictionary structure, but G.neighbors(v,with_labels=True) returns a tuple list. So modify it to
"
for neighbor, label in G.neighbors(v,with_labels=True):
nextlevel[neighbor] = label
"
« November 2009 »
Su Mo Tu We Th Fr Sa
1234567
89101112 1314
1516171819 20 21
22232425262728
2930
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: