Module org.jgrapht.core
Package org.jgrapht.alg.interfaces
Class PlanarityTestingAlgorithm.EmbeddingImpl<V,E>
java.lang.Object
org.jgrapht.alg.interfaces.PlanarityTestingAlgorithm.EmbeddingImpl<V,E>
- Type Parameters:
V- the graph vertex typeE- the graph edge type
- All Implemented Interfaces:
PlanarityTestingAlgorithm.Embedding<V,E>
- Enclosing interface:
- PlanarityTestingAlgorithm<V,E>
public static class PlanarityTestingAlgorithm.EmbeddingImpl<V,E> extends java.lang.Object implements PlanarityTestingAlgorithm.Embedding<V,E>
Implementation of the
PlanarityTestingAlgorithm.Embedding.-
Constructor Details
-
EmbeddingImpl
Creates new embedding of thegraph- Parameters:
graph- thegraphembeddingMap- map from vertices ofgraphto the clockwise order of edges
-
-
Method Details
-
getEdgesAround
Returns the clockwise order of edges incident to thevertex- Specified by:
getEdgesAroundin interfacePlanarityTestingAlgorithm.Embedding<V,E>- Parameters:
vertex- the vertex whose incident edges are returned- Returns:
- the clockwise order of edges incident to the
vertex
-
getGraph
Returns the underlyinggraph- Specified by:
getGraphin interfacePlanarityTestingAlgorithm.Embedding<V,E>- Returns:
- the underlying
graph
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-