Skip to content

@graphty/graphty-element / session / AttributeRole

Type Alias: AttributeRole ​

AttributeRole = "key" | "label" | "weight" | "source" | "target" | "time" | "edgeId"

Defined in: graphty-element/src/catalog/types.ts:888

What a column does for the graph, beyond holding values: the node ids were read from it ("key"), nodes are named by it ("label"), edge weights were read from it ("weight"), edge endpoints ("source", "target"), times ("time") or the file's own edge ids ("edgeId").

OPEN UNION: roles may be added in a minor release; handle unknown roles.