Table of Contents

Class: Network Bio/Pathway/__init__.py

A set of species that are explicitly linked by interactions.

The network is a directed multigraph with labeled edges. The nodes in the graph are the biochemical species involved. The edges represent an interaction between two species, and the edge label is a reference to the associated Interaction object.

Attributes:

None

Methods   
__init__
__repr__
__str__
add_interaction
add_species
interactions
sink
sink_interactions
source
source_interactions
species
  __init__ 
__init__ ( self,  species=[] )

Initializes a new Network object.

  __repr__ 
__repr__ ( self )

Returns a debugging string representation of this network.

  __str__ 
__str__ ( self )

Returns a string representation of this network.

  add_interaction 
add_interaction (
        self,
        source,
        sink,
        interaction,
        )

Adds interaction to this network.

  add_species 
add_species ( self,  species )

Adds species to this network.

  interactions 
interactions ( self )

Returns list of the unique interactions in this network.

  sink 
sink ( self,  species )

Returns list of unique sinks for species.

  sink_interactions 
sink_interactions ( self,  species )

Returns list of (sink, interaction) pairs for species.

  source 
source ( self,  species )

Returns list of unique sources for species.

  source_interactions 
source_interactions ( self,  species )

Returns list of (source, interaction) pairs for species.

  species 
species ( self )

Returns list of the species in this network.


Table of Contents

This document was automatically generated on Mon Jul 1 12:03:09 2002 by HappyDoc version 2.0.1