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:
Instance Methods [hide private]
 
__init__(self, species=())
Initialize a new Network object.
source code
 
__repr__(self)
Return a debugging string representation of this network.
source code
 
__str__(self)
Return a string representation of this network.
source code
 
add_species(self, species)
Add species to this network.
source code
 
add_interaction(self, source, sink, interaction)
Add interaction to this network.
source code
 
source(self, species)
Return list of unique sources for species.
source code
 
source_interactions(self, species)
Return list of (source, interaction) pairs for species.
source code
 
sink(self, species)
Return list of unique sinks for species.
source code
 
sink_interactions(self, species)
Return list of (sink, interaction) pairs for species.
source code
 
species(self)
Return list of the species in this network.
source code
 
interactions(self)
Return 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 
Initialize a new Network object.
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
Return a debugging string representation of this network.
Overrides: object.__repr__

__str__(self)
(Informal representation operator)

source code 
Return a string representation of this network.
Overrides: object.__str__