Class ReactionGraph
- java.lang.Object
-
- bio.singa.mathematics.graphs.model.AbstractMapGraph<NodeType,EdgeType,bio.singa.mathematics.vectors.Vector2D,Integer>
-
- bio.singa.mathematics.graphs.model.DirectedWeightedGraph<ReactionGraphNode,ReactionGraphEdge>
-
- bio.singa.simulation.export.reactiongraph.ReactionGraph
-
- All Implemented Interfaces:
bio.singa.mathematics.graphs.model.Graph<ReactionGraphNode,ReactionGraphEdge,Integer>
public class ReactionGraph extends bio.singa.mathematics.graphs.model.DirectedWeightedGraph<ReactionGraphNode,ReactionGraphEdge>
- Author:
- cl
-
-
Constructor Summary
Constructors Constructor Description ReactionGraph()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddEdgeBetween(int identifier, ReactionGraphNode source, ReactionGraphNode target)intaddEdgeBetween(ReactionGraphNode source, ReactionGraphNode target)ReactionGraphNodeaddNode(ChemicalEntity entity)Optional<ReactionGraphNode>getNodeWithContent(ChemicalEntity content)-
Methods inherited from class bio.singa.mathematics.graphs.model.DirectedWeightedGraph
nextNodeIdentifier
-
Methods inherited from class bio.singa.mathematics.graphs.model.AbstractMapGraph
addEdgeBetween, addNode, addNodeIf, appendGraph, appendNode, containsEdge, containsEdge, containsNode, containsNode, getAllNodes, getEdge, getEdge, getEdges, getMaximumDegree, getNode, getNode, getNodes, nextEdgeIdentifier, removeEdge, removeEdge, removeNode, removeNode, toString
-
-
-
-
Method Detail
-
getNodeWithContent
public Optional<ReactionGraphNode> getNodeWithContent(ChemicalEntity content)
-
addNode
public ReactionGraphNode addNode(ChemicalEntity entity)
-
addEdgeBetween
public int addEdgeBetween(int identifier, ReactionGraphNode source, ReactionGraphNode target)- Specified by:
addEdgeBetweenin interfacebio.singa.mathematics.graphs.model.Graph<ReactionGraphNode,ReactionGraphEdge,Integer>- Specified by:
addEdgeBetweenin classbio.singa.mathematics.graphs.model.AbstractMapGraph<ReactionGraphNode,ReactionGraphEdge,bio.singa.mathematics.vectors.Vector2D,Integer>
-
addEdgeBetween
public int addEdgeBetween(ReactionGraphNode source, ReactionGraphNode target)
- Specified by:
addEdgeBetweenin interfacebio.singa.mathematics.graphs.model.Graph<ReactionGraphNode,ReactionGraphEdge,Integer>- Specified by:
addEdgeBetweenin classbio.singa.mathematics.graphs.model.AbstractMapGraph<ReactionGraphNode,ReactionGraphEdge,bio.singa.mathematics.vectors.Vector2D,Integer>
-
-