duplicate-node-id-raises-valueerror

IN premise

`api.add_node()` raises `ValueError` when given a node ID that already exists in the network — node IDs are unique.

Summary

Adding a node with an ID that's already in use will throw a ValueError, enforcing that every node in the network has a unique identifier. This means callers need to check for existing nodes before adding, or handle the error, and it guarantees the system won't silently overwrite or duplicate entries.

Dependents

These beliefs depend on this one:

Details

Sourceentries/2026/04/24/tests-test_api.md