Native .annnet Format
Primary read and write entry points from annnet.io.annnet_format.
annnet.io.annnet_format.write
Write an AnnNet graph to a directory or .annnet archive.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
matrix
|
bool
|
Also persist the incidence matrix. The records are the source of truth and
fully reconstruct it, so this is a size/load-time trade rather than a
correctness one: with it omitted, |
False
|
annnet.io.annnet_format.read
Load graph from disk with zero loss.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str | Path
|
Path to .annnet directory |
required |
lazy
|
bool
|
If True, delay loading large arrays until accessed |
False
|
Returns:
| Type | Description |
|---|---|
AnnNet
|
Reconstructed graph with all topology and metadata |