network-add-node-rejects-duplicates

IN premise

`Network.add_node()` raises `ValueError` if a node with the given ID already exists in the network.

Summary

Trying to add a node to the network when one with that ID is already present will cause an error rather than silently overwriting or ignoring the duplicate. This means callers need to check for existence first or handle the exception, and it guarantees that node IDs remain unique within any given network instance.

Details

Sourceentries/2026/04/24/reasons_lib-network.md