ICrossClientEdgeHandler<T>

Interfaces · AiDotNet.FederatedLearning.Graph

Handles secure discovery and management of edges that cross client boundaries.

Known implementations: SecureCrossClientEdgeDiscovery<T>

For Beginners

When a graph is split across clients, some edges connect nodes on different clients (cross-client edges). Discovering these edges is essential for GNN quality but must be done privately — Client A shouldn’t learn Client B’s full adjacency list.

How It Works

Approach: Uses Private Set Intersection (PSI) from issue #538: each client provides its border node IDs, and the PSI protocol reveals only the intersection (shared nodes) without exposing non-shared nodes.

Properties

Property Summary
int DiscoveredEdgeCount { get; } Gets the total number of discovered cross-client edges.

Methods

Method Summary
IReadOnlyList<ValueTuple<int, int>> DiscoverEdges(IReadOnlyList<int> clientABorderNodes, IReadOnlyList<int> clientBBorderNodes) Discovers cross-client edges between two clients using PSI.
IReadOnlyList<ValueTuple<int, int>> GetEdges(int clientA, int clientB) Gets the discovered cross-client edges between a specific client pair.
void CacheEdges(int clientA, int clientB, IReadOnlyList<ValueTuple<int, int>> edges) Caches discovered edges for a client pair (to avoid re-running PSI each round).