Skip to content

@eightkk/vue-weave / core / GraphCollapseResult

Interface: GraphCollapseResult<N, E> ​

Defined in: src/core/graphCollapse.ts:45

Type Parameters ​

N ​

N extends NetworkNode = NetworkNode

E ​

E extends GraphEdge = GraphEdge

Properties ​

edges ​

edges: (GraphEdge<unknown> | E)[]

Defined in: src/core/graphCollapse.ts:52

Visible edges in input order. An edge between two visible nodes is kept as it is. Edges re-attached to a proxy are merged into one edge per source, source port, target and target port; it keeps the ID of the first original edge.


groups ​

groups: NetworkGroup[]

Defined in: src/core/graphCollapse.ts:54

The groups that stay drawn, with each collapsed child group replaced by its proxy among the parent's nodeIds.


hiddenEdgeIds ​

hiddenEdgeIds: string[]

Defined in: src/core/graphCollapse.ts:62

Original IDs of the edges dropped because both ends are inside the same collapsed group.


mergedEdges ​

mergedEdges: Map<string, string[]>

Defined in: src/core/graphCollapse.ts:60

Each re-attached edge ID mapped to the original edge IDs merged into it, in input order.


nodes ​

nodes: (NetworkNode<unknown> | N)[]

Defined in: src/core/graphCollapse.ts:47

Visible nodes in input order; each proxy takes the place of its group's first member.


owners ​

owners: Map<string, string>

Defined in: src/core/graphCollapse.ts:58

Every hidden node ID mapped to the proxy that stands for it.


proxies ​

proxies: Map<string, GraphCollapsedGroup>

Defined in: src/core/graphCollapse.ts:56

The outermost collapsed groups by proxy ID, in group input order.

Released under the MIT License.