@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 ​
readonlyattributes: readonlySelectionAttributeStatistics[]
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 ​
readonlycutEdges: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 ​
readonlyedges:number
Defined in: graphty-element/src/session/selection/SelectionApi.ts:154
How many edges are selected.
inducedEdges ​
readonlyinducedEdges: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 ​
readonlynodes:number
Defined in: graphty-element/src/session/selection/SelectionApi.ts:152
How many nodes are selected.