networkAttribute
method
Back to Helios Network JS/WASM API
- Kind
- method
- Source
- src/js/HeliosNetwork.js:5635
Description
Defines or updates one network-level attribute and returns the network for chaining. Network attributes store one graph-wide value at id/ordinal 0. Missing attributes are defined from options.type / options.dimension, or inferred from the provided value or callback result.
Signature
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
name | string | Attribute identifier. | ||
valueOrFn | *|function(*, number, number, HeliosNetwork): * | Scalar, vector, or callback. | ||
options | AttributeWriteOptions | optional | Optional type and dimension controls. |
Returns
This network.
TypeHeliosNetworkNotes
Network attributes store graph-wide metadata such as titles, coordinate bounds, import provenance, or visualization defaults. They have one logical value and do not iterate over nodes or edges.