Optionaldata: Partial<CX2Network>OptionalattributeOptionalnetworkOptionalnodesOptionaledgesOptionalnodeOptionaledgeOptionalvisualOptionalstatusStaticcreateCreate a new empty CX2Network
StaticfromStaticfromCreate CX2Network from NetworkSummary (for compatibility)
Add a node to the network
Optionalattributes: Record<string, any>Add an individual node attribute
Add edge attributes (bulk)
Set node coordinates
Optionalz: numberGet all nodes
Get all edges
Get node count
Get edge count
Get network name from attributes
Set network name
Get network attribute by key
Set network attribute
Validate the CX2 network structure
Convert to JSON string
Create a deep copy of the network
CX2Network - Modern representation of CX2 format networks Provides utilities for creating, manipulating, and validating CX2 networks