- alignEdge<TNode, TEdge>(selfKey, edge): EdgeIterationCallbackParameters<TNode, TEdge>
Type Parameters
TNode extends Attributes
TEdge extends Attributes
Parameters
selfKey: string
edge: [edge: string, attributes: TEdge, source: string, target: string, sourceAttributes: TNode, targetAttributes: TNode, undirected: boolean]
Reorders edge such that the source key and attributes are the same as that of the provided key.