Skip to content

@graphty/graphty-element / index / NeighborSort

Interface: NeighborSort ​

Defined in: graphty-element/src/session/types.ts:396

What a neighbor page is sorted by: its weight or its name, smallest first unless descending. The direction is absolute, whatever the weight means: the default order is { by: "weight", descending: true } for a strength and { by: "weight" } for a distance.

Properties ​

by ​

readonly by: "name" | "weight"

Defined in: graphty-element/src/session/types.ts:397


descending? ​

readonly optional descending?: boolean

Defined in: graphty-element/src/session/types.ts:399

Largest first. Default false.