Package igraph
[hide private]
[frames] | no frames]

Package igraph



IGraph library.

Submodules [hide private]

Classes [hide private]
  ARPACKOptions
Class representing the parameters of the ARPACK module.
  BFSIter
igraph BFS iterator object
  Edge
Class representing a single edge in a graph.
  EdgeSeq
Class representing a sequence of edges in the graph.
  Graph
Generic graph.
  GraphBase
Low-level representation of a graph.
  Vertex
Class representing a single vertex in a graph.
  VertexSeq
Class representing a sequence of vertices in the graph.

Functions [hide private]
  load(filename, *args, **kwds)
Loads a graph from the given filename.
  read(filename, *args, **kwds)
Loads a graph from the given filename.
  save(graph, filename, *args, **kwds)
Saves a graph to the given file.
  summary(o, f=<epydoc.docintrospecter._DevNull instance at 0x107ceb8>)
Prints a summary of object o to a given stream
  write(graph, filename, *args, **kwds)
Saves a graph to the given file.

Variables [hide private]
  ADJ_DIRECTED = 0
  ADJ_LOWER = 3
  ADJ_MAX = 1
  ADJ_MIN = 4
  ADJ_PLUS = 5
  ADJ_UNDIRECTED = 1
  ADJ_UPPER = 2
  ALL = 3
  BLISS_F = 0
  BLISS_FL = 1
  BLISS_FLM = 4
  BLISS_FM = 3
  BLISS_FS = 2
  BLISS_FSM = 5
  GET_ADJACENCY_BOTH = 2
  GET_ADJACENCY_LOWER = 1
  GET_ADJACENCY_UPPER = 0
  IN = 2
  OUT = 1
  REWIRING_SIMPLE = 0
  STAR_IN = 1
  STAR_OUT = 0
  STAR_UNDIRECTED = 2
  STRONG = 2
  TREE_IN = 1
  TREE_OUT = 0
  TREE_UNDIRECTED = 2
  WEAK = 1
  __build_date__ = 'Feb 14 2008'
  __license__ = '\nCopyright (C) 2006-2007 Gabor Csardi <csardi@rmki...
  __loader__ = <zipimporter object "/Library/Frameworks/Python.fram...
  __version__ = '0.5'
  arpack_options = <igraph.ARPACKOptions object at 0x73ee90>
  config = <igraph.configuration.Configuration object at 0x1298...
  known_colors = {'medium violet red': (0.7803921568627451, 0.0823529...
  palettes = {'gray': <igraph.colors.GradientPalette object at 0x...

Function Details [hide private]

load(filename, *args, **kwds)

 

Loads a graph from the given filename.

This is just a convenience function, calls Graph.Read directly. All arguments are passed unchanged to Graph.Read
Parameters:
  • filename - the name of the file to be loaded

read(filename, *args, **kwds)

 

Loads a graph from the given filename.

This is just a convenience function, calls Graph.Read directly. All arguments are passed unchanged to Graph.Read
Parameters:
  • filename - the name of the file to be loaded

save(graph, filename, *args, **kwds)

 

Saves a graph to the given file.

This is just a convenience function, calls Graph.write directly. All arguments are passed unchanged to Graph.write
Parameters:
  • graph - the graph to be saved
  • filename - the name of the file to be written

summary(o, f=<epydoc.docintrospecter._DevNull instance at 0x107ceb8>)

 
Prints a summary of object o to a given stream
Parameters:
  • o - the object about which a human-readable summary is requested.
  • f - the stream to be used

write(graph, filename, *args, **kwds)

 

Saves a graph to the given file.

This is just a convenience function, calls Graph.write directly. All arguments are passed unchanged to Graph.write
Parameters:
  • graph - the graph to be saved
  • filename - the name of the file to be written

Variables Details [hide private]

ADJ_DIRECTED

None
Value:
0                                                                     
      

ADJ_LOWER

None
Value:
3                                                                     
      

ADJ_MAX

None
Value:
1                                                                     
      

ADJ_MIN

None
Value:
4                                                                     
      

ADJ_PLUS

None
Value:
5                                                                     
      

ADJ_UNDIRECTED

None
Value:
1                                                                     
      

ADJ_UPPER

None
Value:
2                                                                     
      

ALL

None
Value:
3                                                                     
      

BLISS_F

None
Value:
0                                                                     
      

BLISS_FL

None
Value:
1                                                                     
      

BLISS_FLM

None
Value:
4                                                                     
      

BLISS_FM

None
Value:
3                                                                     
      

BLISS_FS

None
Value:
2                                                                     
      

BLISS_FSM

None
Value:
5                                                                     
      

GET_ADJACENCY_BOTH

None
Value:
2                                                                     
      

GET_ADJACENCY_LOWER

None
Value:
1                                                                     
      

GET_ADJACENCY_UPPER

None
Value:
0                                                                     
      

IN

None
Value:
2                                                                     
      

OUT

None
Value:
1                                                                     
      

REWIRING_SIMPLE

None
Value:
0                                                                     
      

STAR_IN

None
Value:
1                                                                     
      

STAR_OUT

None
Value:
0                                                                     
      

STAR_UNDIRECTED

None
Value:
2                                                                     
      

STRONG

None
Value:
2                                                                     
      

TREE_IN

None
Value:
1                                                                     
      

TREE_OUT

None
Value:
0                                                                     
      

TREE_UNDIRECTED

None
Value:
2                                                                     
      

WEAK

None
Value:
1                                                                     
      

__build_date__

None
Value:
'Feb 14 2008'                                                          
      

__license__

None
Value:
'''
Copyright (C) 2006-2007  Gabor Csardi <csardi@rmki.kfki.hu>,
Tamas Nepusz <ntamas@rmki.kfki.hu>

MTA RMKI, Konkoly-Thege Miklos st. 29-33, Budapest 1121, Hungary

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...                                                                    
      

__loader__

None
Value:
<zipimporter object "/Library/Frameworks/Python.framework/Versions/2.4
/lib/python2.4/site-packages/python_igraph-0.5-py2.4-macosx-10.5-fat.e
gg">                                                                   
      

__version__

None
Value:
'0.5'                                                                  
      

arpack_options

None
Value:
<igraph.ARPACKOptions object at 0x73ee90>                              
      

config

None
Value:
<igraph.configuration.Configuration object at 0x1298310>               
      

known_colors

None
Value:
{'darkseagreen': (0.5607843137254902, 0.73725490196078436, 0.560784313
7254902),
 'grey60': (0.59999999999999998, 0.59999999999999998, 0.59999999999999
998),
 'grey61': (0.61176470588235299, 0.61176470588235299, 0.61176470588235
299),
 'grey62': (0.61960784313725492, 0.61960784313725492, 0.61960784313725
492),
...                                                                    
      

palettes

None
Value:
{'gray': <igraph.colors.GradientPalette object at 0x12661b0>,
 'red-blue': <igraph.colors.GradientPalette object at 0x1266210>}