@graphty/graphty-element / format / expandEdges
Function: expandEdges() ​
expandEdges<
T>(snapshot,perEdge,out?):T
Defined in: graph-format/dist/src/snapshot/views.d.ts:272
Expand a per-edge vector (edgeCount entries) to a per-arc vector (arcCount entries) through arcToEdge (design section 7.5). Returns perEdge itself when the permutation is the identity and no out is given.
Type Parameters ​
T ​
T extends NumericVector
Parameters ​
snapshot ​
the snapshot the vector is aligned to
perEdge ​
T
the per-edge values, edgeCount entries
out? ​
T
an optional destination of arcCount entries
Returns ​
T
the per-arc vector