Package NX
[frames | no frames]

Package NX

NetworkX (NX) is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks.

Using

Just write in Python

>>> import NX
>>> G=NX.Graph()
>>> G.add_edge(1,2)
>>> G.add_node("spam")
>>> print G.nodes()
[1, 2, 'spam']
>>> print G.edges()
[(1, 2)]

See NX.base for the details of the API.


Submodules
  • base: Base classes for graphs and digraphs.
  • centrality: Centrality measures.
  • cliques: Cliques - Find and manipulate cliques of graphs
  • cluster: Compute clustering coefficients and transitivity of graphs.
  • cores: Find and manipulate the k-cores of a graph
  • drawing
    • layout: Layout (positioning) algorithms for graph drawing.
    • nx_pydot: Import and export NX networks to dot format using pydot.
    • nx_pylab: Draw networks with matplotlib/pylab.
  • generators: A package for generating various graphs in NX.
    • atlas: Generators for the small graph atlas.
    • classic: Generators for some classic graphs.
    • degree_seq: Generate graphs with a given degree sequence.
    • geometric: Generators for geometric graphs.
    • random_graphs: Generators for random graphs
    • small: Various small and named graphs, together with some compact generators.
  • hybrid: Hybrid
  • io: Read and write graphs and networks.
  • isomorph: Fast checking to see if graphs are not isomorphic.
  • operators: Operations on graphs; including union, complement, subgraph.
  • paths: Shortest path length, diameter, radius, eccentricity, and related methods.
  • queues: Helper queues for use in graph searching.
  • release: Release data for NetworkX.
  • search: Search algorithms, shortest path, spanning trees, etc.
  • search_class: Graph search classes
  • spectrum: Laplacian, adjacency matrix, and spectrum of graphs.
  • tests
  • utils: Utilities for NX package
  • xbase: Methods for general graphs (XGraph) and digraphs (XDiGraph) allowing self-loops, multiple edges, arbitrary (hashable) objects as nodes and arbitrary objects associated with edges.

Variable Summary
str __author__ = 'Aric Hagberg <hagberg@lanl.gov>\nDan Schul...
str __date__ = 'Mon Apr 11 10:58:56 2005'
str __license__ = 'LGPL'
str __version__ = '0.2'

Variable Details

__author__

Type:
str
Value:
'''Aric Hagberg <hagberg@lanl.gov>
Dan Schult <dschult@colgate.edu>
Pieter Swart <swart@lanl.gov>'''                                       

__date__

Type:
str
Value:
'Mon Apr 11 10:58:56 2005'                                             

__license__

Type:
str
Value:
'LGPL'                                                                 

__version__

Type:
str
Value:
'0.2'                                                                  

Generated by Epydoc 2.1 on Mon Apr 11 10:59:21 2005 http://epydoc.sf.net