V - The vertex typeE - The edge typepublic class PlanarFaces<V extends Vertex,E extends Edge<V>>
extends java.lang.Object
| Constructor and Description |
|---|
PlanarFaces(Graph<V,E> graph) |
PlanarFaces(Graph<V,E> graph,
STNumbering<V,E> stNumbering) |
| Modifier and Type | Method and Description |
|---|---|
void |
formFaces(V s,
V t)
Runs the algorithm for forming planar faces
|
java.util.List<java.util.List<E>> |
getAllFaces() |
java.util.Map<E,java.util.List<java.util.List<E>>> |
getEdgeFacesMap() |
java.util.Map<V,java.util.List<E>> |
getPlanarEmbedding() |
java.util.List<E> |
leftFaceOf(E edge)
Left face of the given edge
|
java.util.List<E> |
rightFaceOf(E edge)
Right face of the given edge
|
void |
setAllFaces(java.util.List<java.util.List<E>> allFaces) |
public void formFaces(V s, V t) throws CannotBeAppliedException
s - The first vertex of the st-numberingt - The last vertex of the st-numberingCannotBeAppliedException - If the graph is not planarpublic java.util.List<E> leftFaceOf(E edge)
edge - Edgepublic java.util.List<E> rightFaceOf(E edge)
edge - Edgepublic java.util.List<java.util.List<E>> getAllFaces()
public void setAllFaces(java.util.List<java.util.List<E>> allFaces)
allFaces - the allFaces to setpublic java.util.Map<E,java.util.List<java.util.List<E>>> getEdgeFacesMap()