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