Skip to content

@graphty/graphty-element / session / SelectionStatistics

Interface: SelectionStatistics ​

Defined in: graphty-element/src/session/selection/SelectionApi.ts:150

What the current selection adds up to.

Properties ​

attributes ​

readonly attributes: readonly SelectionAttributeStatistics[]

Defined in: graphty-element/src/session/selection/SelectionApi.ts:166

One entry per attribute the selected nodes carry.

Node attributes only: the entries carry no kind, so a node's data.weight and an edge's data.weight would be indistinguishable in one list. What the edge half of the selection adds up to is the three counts above.


cutEdges ​

readonly cutEdges: number

Defined in: graphty-element/src/session/selection/SelectionApi.ts:158

Edges of the graph with exactly one endpoint selected, which is what a subgraph cuts.


edges ​

readonly edges: number

Defined in: graphty-element/src/session/selection/SelectionApi.ts:154

How many edges are selected.


inducedEdges ​

readonly inducedEdges: number

Defined in: graphty-element/src/session/selection/SelectionApi.ts:156

Edges of the graph whose endpoints are both selected nodes, selected or not themselves.


nodes ​

readonly nodes: number

Defined in: graphty-element/src/session/selection/SelectionApi.ts:152

How many nodes are selected.