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.
|
__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
|
|