Package igraph :: Package app :: Module shell
[hide private]
[frames] | no frames]

Module shell

Command-line user interface of igraph

The command-line interface launches a Python shell with the igraph module automatically imported into the main namespace. This is mostly a convenience module and it is used only by the igraph command line script which executes a suitable Python shell and automatically imports igraph's classes and functions in the top-level namespace.

Supported Python shells are:

The shells are tried in the above mentioned preference order one by one, unless the global.shells configuration key is set which overrides the default order. IDLE shell is only tried in Windows unless explicitly stated by global.shells, since Linux and Mac OS X users are likely to invoke igraph from the command line.


Version: 0.5.1

Classes [hide private]
  ClassicPythonShell
Classic Python shell interface.
  IDLEShell
IDLE embedded shell interface.
  IPythonShell
IPython embedded shell interface.
  ProgressBar
A 2-line progress bar, which looks like:
  Shell
Superclass of the embeddable shells supported by igraph
  TerminalController
A class that can be used to portably generate formatted output to a terminal.
Functions [hide private]
 
main()
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
  __loader__ = <zipimporter object "/Library/Python/2.5/site-pac...
  arpack_options = <igraph.ARPACKOptions object at 0x3885d0>
  config = <igraph.configuration.Configuration object at 0x284090>
  known_colors = {'alice blue': (0.941176470588, 0.972549019608,...
  palettes = {'gray': <igraph.colors.GradientPalette object at 0...
Variables Details [hide private]

__loader__

Value:
<zipimporter object "/Library/Python/2.5/site-packages/python_igraph-0\
.5.1-py2.5-macosx-10.5-i386.egg/igraph/app/">

known_colors

Value:
{'alice blue': (0.941176470588, 0.972549019608, 1.0),
 'aliceblue': (0.941176470588, 0.972549019608, 1.0),
 'antique white': (0.980392156863, 0.921568627451, 0.843137254902),
 'antiquewhite': (0.980392156863, 0.921568627451, 0.843137254902),
 'antiquewhite1': (1.0, 0.937254901961, 0.858823529412),
 'antiquewhite2': (0.933333333333, 0.874509803922, 0.8),
 'antiquewhite3': (0.803921568627, 0.752941176471, 0.690196078431),
 'antiquewhite4': (0.545098039216, 0.513725490196, 0.470588235294),
...

palettes

Value:
{'gray': <igraph.colors.GradientPalette object at 0x25b6f0>,
 'red-blue': <igraph.colors.GradientPalette object at 0x25b750>}