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

Class Network

source code

object --+
         |
        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

Instance Methods [hide private]
 
__init__(self, species=[])
Initializes a new Network object.
source code
 
__repr__(self)
Returns a debugging string representation of this network.
source code
 
__str__(self)
Returns a string representation of this network.
source code
 
add_species(self, species)
Adds species to this network.
source code
 
add_interaction(self, source, sink, interaction)
Adds interaction to this network.
source code
 
source(self, species)
Returns list of unique sources for species.
source code
 
source_interactions(self, species)
Returns list of (source, interaction) pairs for species.
source code
 
sink(self, species)
Returns list of unique sinks for species.
source code
 
sink_interactions(self, species)
Returns list of (sink, interaction) pairs for species.
source code
 
species(self)
Returns list of the species in this network.
source code
 
interactions(self)
Returns list of the unique interactions in this network.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 
Initializes a new Network object.

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
Returns a debugging string representation of this network.

Overrides: object.__repr__

__str__(self)
(Informal representation operator)

source code 
Returns a string representation of this network.

Overrides: object.__str__