The fetch_all_nodes function has a max_items parameter (default 2000) to
prevent fetching too many items, but fetch_all_edges was missing this
safeguard. This could cause memory issues with graphs that have a large
number of edges.
Added _MAX_EDGES = 5000 as the default limit for edges, matching the
pattern already established for nodes.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>