V - The vertex typeE - The edge typepublic class LRPartitionEdge<V extends Vertex,E extends Edge<V>>
extends java.lang.Object
| Constructor and Description |
|---|
LRPartitionEdge(E edge)
Mark the given edge as a LR partition edge and initializes
lists of the edges which should be in the same and in different
partition as it
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addToDifferent(java.util.Set<E> toBeAdded)
Marks the given edges as those that should be in the different partition
than the current edge
|
boolean |
addToSame(java.util.Set<E> toBeAdded)
Marks the given edges as those that should be in the same partition
as the current edge
|
java.util.List<E> |
getDifferent() |
E |
getEdge() |
java.util.List<E> |
getSame() |
boolean |
isValid() |
void |
setDifferent(java.util.List<E> different) |
void |
setEdge(E edge) |
void |
setSame(java.util.List<E> same) |
void |
setValid(boolean valid) |
public LRPartitionEdge(E edge)
edge - Edgepublic boolean addToSame(java.util.Set<E> toBeAdded)
toBeAdded - Edges that should be in the same partition as the current edgestrue if there was no contradiction, false otherwisepublic boolean addToDifferent(java.util.Set<E> toBeAdded)
toBeAdded - Edges that should be in the different partition than the current edge'strue if there was no contradiction, false otherwisepublic E getEdge()
public void setEdge(E edge)
edge - Edge to setpublic java.util.List<E> getSame()
public void setSame(java.util.List<E> same)
same - Edges that should be in the same partition as this onepublic java.util.List<E> getDifferent()
public void setDifferent(java.util.List<E> different)
different - Edges that should be in the different partition than this one'spublic boolean isValid()
public void setValid(boolean valid)
valid - Valid value to set