Represents an embedding of a planar graph.
A planar embedding is represented by a
list of faces. Each face is represented by a list of
darts which describe the border of the face.
- yfiles module
- algorithms
- yfiles-umd modules
- All layout modules,
view-layout-bridge
- Legacy UMD name
- yfiles.algorithms.PlanarEmbedding
The resulting embedding does not consider the current drawing of the graph.
Querying the planar embedding after changes to the underlying graph structure may produce exceptions.
Creates a new embedding for the specified planar graph.
options - Object
A map of options to pass to the method.
- graph - Graph
a planar graph
- Exception({ name: 'ArgumentError' })
- if the specified graph is not planar
Gets a IList<T> of face lists.
More precisely, each entry of this list is another list that contains all
darts of a face.
Gets the IList<T> that represents the outer face.
The returned list is also contained in the
face lists.
Returns the cyclic next dart of the given dart.
options - Object
A map of options to pass to the method.
- dart - Dart
a dart
- ↪Dart
the cyclic next dart of the given dart
Returns the cyclic previous dart of the given dart.
options - Object
A map of options to pass to the method.
- dart - Dart
a dart
- ↪Dart
the cyclic previous dart of the given dart
Returns the two darts associated with the given edge.
options - Object
A map of options to pass to the method.
- edge - Edge
an edge
- ↪Dart[]
the two darts associated with the given edge
Returns a IList<T> containing the (cyclic ordered) outgoing darts of the specified node.
options - Object
A map of options to pass to the method.
- node - YNode
a node
- ↪IList<Dart>
a
IList<T> containing the (cyclic ordered) outgoing darts
Return whether or not the given graph is planar.
options - Object
A map of options to pass to the method.
- graph - Graph
the input graph
- ↪boolean
true
if the given graph is planar, false
otherwise