| Constructor and Description |
|---|
HopcroftTarjanSplitComponent()
Creates an empty component
|
HopcroftTarjanSplitComponent(java.util.List<E> edges,
java.util.List<E> virtualEdges,
SplitTriconnectedComponentType type)
Creates a component with the specified edges and virtual edges
of the given type
|
HopcroftTarjanSplitComponent(SplitTriconnectedComponentType type,
java.util.List<E> edges)
Creates a component with the specified edges
of the given type
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEdge(E e)
Adds an edge to the list of edges
|
void |
addVirtualEdge(E e)
Adds a virtual edge - updates both the list of edges and virtual edges
|
java.util.Map<V,java.util.List<E>> |
adjacencyMap()
Finds adjacency map of the component.
|
java.util.List<E> |
getEdges() |
SplitPair<V,E> |
getSpearaionPair() |
SplitTriconnectedComponentType |
getType() |
java.util.List<V> |
getVertices() |
java.util.List<E> |
getVirtualEdges() |
void |
setEdges(java.util.List<E> edges)
Sets edges and initializes the virtual edges list.
|
void |
setSpearaionPair(SplitPair<V,E> spearaionPair) |
void |
setType(SplitTriconnectedComponentType type) |
void |
setVertices()
Sets the components vertices based on the edges that it contains
|
void |
setVirtualEdges(java.util.List<E> virtualEdges) |
java.lang.String |
toString() |
public HopcroftTarjanSplitComponent()
public HopcroftTarjanSplitComponent(java.util.List<E> edges, java.util.List<E> virtualEdges, SplitTriconnectedComponentType type)
edges - Component's edgesvirtualEdges - Component's virtual edgestype - Component's typepublic HopcroftTarjanSplitComponent(SplitTriconnectedComponentType type, java.util.List<E> edges)
edges - Component's edgestype - Component's typepublic SplitTriconnectedComponentType getType()
public void setType(SplitTriconnectedComponentType type)
type - Component's type to setpublic java.util.List<E> getEdges()
public void setEdges(java.util.List<E> edges)
public java.util.Map<V,java.util.List<E>> adjacencyMap()
public void setVertices()
public void setSpearaionPair(SplitPair<V,E> spearaionPair)
spearaionPair - Separation pair to setpublic java.util.List<E> getVirtualEdges()
public void setVirtualEdges(java.util.List<E> virtualEdges)
virtualEdges - Virtual edges to setpublic void addEdge(E e)
e - Edge to be addedpublic void addVirtualEdge(E e)
e - The virtual edge to be addedpublic java.util.List<V> getVertices()