public class RepEGraphImpl extends EGraphImp implements RepEGraph
Constructor and Description |
---|
RepEGraphImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addRepresentedGraph(int graphId) |
int |
getCost() |
int |
getCost(java.lang.String costFunctionName) |
java.util.Map<java.lang.String,java.lang.Integer> |
getCosts() |
java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.lang.Integer>> |
getEdgeRepresentedEdges() |
java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.lang.Integer>> |
getNodeRepresentedNodes() |
ENode |
getNodeRepresenting(int graphId,
int nodeId) |
java.util.Map<java.lang.Integer,java.lang.Integer> |
getNodeToCost() |
java.util.Map<java.lang.Integer,java.lang.Boolean> |
getNodeToMappedCorrectly() |
java.util.List<java.lang.Integer> |
getRepresentedGraphIds() |
void |
removeNode(ENode node) |
void |
setCost(int cost) |
void |
setCost(java.lang.String costFunctionName,
int cost) |
void |
setNodeToCorrect(java.util.Map<java.lang.Integer,java.lang.Boolean> nodeToCorrect) |
void |
setNodeToCost(java.util.Map<java.lang.Integer,java.lang.Integer> nodeToCost) |
java.lang.String |
toString() |
void |
updateEdgeRepresentedEdge(int edgeId,
int orgGraphId,
int orgEdgeId) |
void |
updateNodeRepresentedNode(int nodeId,
int orgGraphId,
int orgNodeId) |
addEdge, addNode, getDist, getEdge, getEdges, getId, getNodeById, getNodes, getNodesWithLabel, getSize, setGraphDist, setId
public void addRepresentedGraph(int graphId)
addRepresentedGraph
in interface RepEGraph
public void removeNode(ENode node)
removeNode
in interface EGraph
removeNode
in class EGraphImp
public void updateNodeRepresentedNode(int nodeId, int orgGraphId, int orgNodeId)
updateNodeRepresentedNode
in interface RepEGraph
public void updateEdgeRepresentedEdge(int edgeId, int orgGraphId, int orgEdgeId)
updateEdgeRepresentedEdge
in interface RepEGraph
public java.util.List<java.lang.Integer> getRepresentedGraphIds()
getRepresentedGraphIds
in interface RepEGraph
public java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.lang.Integer>> getEdgeRepresentedEdges()
getEdgeRepresentedEdges
in interface RepEGraph
public java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.lang.Integer>> getNodeRepresentedNodes()
getNodeRepresentedNodes
in interface RepEGraph
public java.util.Map<java.lang.Integer,java.lang.Integer> getNodeToCost()
getNodeToCost
in interface RepEGraph
public void setNodeToCost(java.util.Map<java.lang.Integer,java.lang.Integer> nodeToCost)
setNodeToCost
in interface RepEGraph
public java.util.Map<java.lang.Integer,java.lang.Boolean> getNodeToMappedCorrectly()
getNodeToMappedCorrectly
in interface RepEGraph
public void setNodeToCorrect(java.util.Map<java.lang.Integer,java.lang.Boolean> nodeToCorrect)
setNodeToCorrect
in interface RepEGraph
public ENode getNodeRepresenting(int graphId, int nodeId)
getNodeRepresenting
in interface RepEGraph
public int getCost(java.lang.String costFunctionName)
public void setCost(java.lang.String costFunctionName, int cost)