Skip to content

Data/API Examples

Helios Network examples are API/data-first. They focus on graph construction, attribute writing, selectors, serialization, language bindings, and the low-level WASM buffer path that powers high-performance workflows.

For ordinary JavaScript code, prefer the chainable attribute writers: nodeAttribute, edgeAttribute, nodeAttributes, edgeAttributes, networkAttribute, and networkAttributes. They keep examples readable while still handling schema inference, version bumps, and safe WASM access internally.

Use withBufferAccess(...) when you deliberately need direct typed-array views for very large writes, custom importers, or tight loops.

Categories