Skip to content

Interface: NodeLinkInput ​

Experimental

Node-link data: the node and link containers of a graph trace, with links as node indices. It is what the adapters of @mk7s/holochart-traces-graph return (fromNodeLink, fromDot, fromEdgeList, fromAdjacencyMatrix). Its arrays are read as columns: node.label, node.group (the default color), node.x / node.y, node.value, link.value (the default weight) and link.label are used without being named, and directed is the default of the option.

Properties ​

PropertyModifierTypeDescription
directed?readonlybooleanExperimental
linkreadonlyobjectExperimental
link.color?readonlyArrayLike<unknown>-
link.customdata?readonlyArrayLike<unknown>-
link.label?readonlyArrayLike<unknown>-
link.sourcereadonlyArrayLike<unknown>-
link.targetreadonlyArrayLike<unknown>-
link.value?readonlyArrayLike<unknown>-
node?readonlyobjectExperimental
node.color?readonlyArrayLike<unknown>-
node.customdata?readonlyArrayLike<unknown>-
node.group?readonlyArrayLike<unknown>-
node.label?readonlyArrayLike<unknown>-
node.value?readonlyArrayLike<unknown>-
node.x?readonlyArrayLike<unknown>-
node.y?readonlyArrayLike<unknown>-

Released under the MIT License.