Class UniqueEntryExitCustomGraph
- java.lang.Object
-
- com.ensoftcorp.open.commons.algorithms.UniqueEntryExitCustomGraph
-
- All Implemented Interfaces:
UniqueEntryExitGraph
public class UniqueEntryExitCustomGraph extends java.lang.Object implements UniqueEntryExitGraph
-
-
Constructor Summary
Constructors Constructor Description UniqueEntryExitCustomGraph(com.ensoftcorp.atlas.core.db.graph.Graph graph, com.ensoftcorp.atlas.core.db.graph.Node masterEntry, com.ensoftcorp.atlas.core.db.graph.Node masterExit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Edge>
edges()
The set of edges in the graphcom.ensoftcorp.atlas.core.db.graph.Node
getEntryNode()
Returns the master entry nodecom.ensoftcorp.atlas.core.db.graph.Node
getExitNode()
Returns the master exit nodecom.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node>
getPredecessors(com.ensoftcorp.atlas.core.db.graph.Node node)
Gets the predecessors of a given nodecom.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node>
getSuccessors(com.ensoftcorp.atlas.core.db.graph.Node node)
Gets the successors of a given nodecom.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node>
nodes()
The set of nodes in the graph
-
-
-
Method Detail
-
getPredecessors
public com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> getPredecessors(com.ensoftcorp.atlas.core.db.graph.Node node)
Gets the predecessors of a given node- Specified by:
getPredecessors
in interfaceUniqueEntryExitGraph
- Parameters:
node
-- Returns:
- Predecessors of node
-
getSuccessors
public com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> getSuccessors(com.ensoftcorp.atlas.core.db.graph.Node node)
Gets the successors of a given node- Specified by:
getSuccessors
in interfaceUniqueEntryExitGraph
- Parameters:
node
-- Returns:
- Successors of node
-
getEntryNode
public com.ensoftcorp.atlas.core.db.graph.Node getEntryNode()
Description copied from interface:UniqueEntryExitGraph
Returns the master entry node- Specified by:
getEntryNode
in interfaceUniqueEntryExitGraph
-
getExitNode
public com.ensoftcorp.atlas.core.db.graph.Node getExitNode()
Description copied from interface:UniqueEntryExitGraph
Returns the master exit node- Specified by:
getExitNode
in interfaceUniqueEntryExitGraph
-
nodes
public com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> nodes()
Description copied from interface:UniqueEntryExitGraph
The set of nodes in the graph- Specified by:
nodes
in interfaceUniqueEntryExitGraph
- Returns:
-
edges
public com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Edge> edges()
Description copied from interface:UniqueEntryExitGraph
The set of edges in the graph- Specified by:
edges
in interfaceUniqueEntryExitGraph
- Returns:
-
-