Provides mappings between the copied and original graph items for layout graphs that are created as a copy of another graph using the createCopy method.
Remarks
An instance of this class can be obtained for a copied graph via its context property graphCopyData.
This class cannot be instantiated
Type Details
- yFiles module
- algorithms
Properties
Gets the copied graph.
Gets the original graph that was copied.
Methods
Returns the copied edge that corresponds to the specified original edge.
Parameters
A map of options to pass to the method.
- originalEdge - LayoutEdge
- An edge from the original graph whose copy resides in this graph.
Returns
- ↪LayoutEdge?
- An edge in this graph that is the copy of the given original edge, or
null
if no corresponding edge exists.
Returns the copied node that corresponds to the specified original node.
Parameters
A map of options to pass to the method.
- originalNode - LayoutNode
- A node from the original graph whose copy resides in this graph.
Returns
- ↪LayoutNode?
- A node in this graph that is the copy of the given original node, or
null
if no corresponding node exists.
Returns the original edge that corresponds to the specified copied edge.
Parameters
A map of options to pass to the method.
- copiedEdge - LayoutEdge
- The edge in this graph that is a copy of the returned edge.
Returns
- ↪LayoutEdge?
- The original edge in the originalGraph whose copy is the given edge, or
null
if no corresponding edge exists.
Returns the original edge label that corresponds to the given copied edge label.
Parameters
A map of options to pass to the method.
- label - LayoutEdgeLabel
- The label in the copiedGraph that is a copy of the returned edge label.
Returns
- ↪LayoutEdgeLabel?
- The original edge label in the originalGraph whose copy is the given label, or
null
if no corresponding label exists.
Returns the original node that corresponds to the specified copied node.
Parameters
A map of options to pass to the method.
- copiedNode - LayoutNode
- The node in this graph that is a copy of the returned node.
Returns
- ↪LayoutNode?
- The original node in the originalGraph whose copy is the given node, or
null
if no corresponding node exists.
Returns the original node label that corresponds to the given copied node label.
Parameters
A map of options to pass to the method.
- label - LayoutNodeLabel
- The label in the copiedGraph that is a copy of the returned label.
Returns
- ↪LayoutNodeLabel?
- The original node label in the originalGraph whose copy is the given label, or
null
if no corresponding label exists.