Package Bio :: Package Pathway :: Class Network
[show private | hide private]
[frames | no frames]

Class Network


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
Method Summary
  __init__(self, species)
Initializes a new Network object.
  __repr__(self)
Returns a debugging string representation of this network.
  __str__(self)
Returns a string representation of this network.
  add_interaction(self, source, sink, interaction)
Adds interaction to this network.
  add_species(self, species)
Adds species to this network.
  interactions(self)
Returns list of the unique interactions in this network.
  sink(self, species)
Returns list of unique sinks for species.
  sink_interactions(self, species)
Returns list of (sink, interaction) pairs for species.
  source(self, species)
Returns list of unique sources for species.
  source_interactions(self, species)
Returns list of (source, interaction) pairs for species.
  species(self)
Returns list of the species in this network.

Method Details

__init__(self, species=[])
(Constructor)

Initializes a new Network object.

__repr__(self)
(Representation operator)

Returns a debugging string representation of this network.

__str__(self)
(Informal representation operator)

Returns a string representation of this network.

add_interaction(self, source, sink, interaction)

Adds interaction to this network.

add_species(self, species)

Adds species to this network.

interactions(self)

Returns list of the unique interactions in this network.

sink(self, species)

Returns list of unique sinks for species.

sink_interactions(self, species)

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

source(self, species)

Returns list of unique sources for species.

source_interactions(self, species)

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

species(self)

Returns list of the species in this network.

Generated by Epydoc 2.1 on Sat Jul 16 15:49:03 2005 http://epydoc.sf.net