HF RL Explorer

We need a function to compute vertex eccentricity for weighted graphs. The library currently has igraph…

We need a function to compute vertex eccentricity for weighted graphs. The library currently has igraph…: a task in LegoFlow-SWE (Harbor dataset). Parameters: - graph – input graph (directed or undirected) - weights – edge weights; if NULL , the function should behave exactly like igraph…

The task

**Parameters:** - `graph` – input graph (directed or undirected) - `weights` – edge weights; if `NULL`, the function should behave exactly like `igraph_eccentricity()` (i.e., treat every edge as weight 1) - `res` – output vector, will contain the eccentricity for each requested vertex - `vids` – vertex selector…

Part of Lego-X/LegoFlow-SWE.