We need a new function igraph graph power() that computes the k‑th power of a graph and writes the result…
We need a new function igraph graph power() that computes the k‑th power of a graph and writes the result…: a task in LegoFlow-SWE (Harbor dataset). Desired signature: c igraph error t igraph graph power(const igraph t graph, igraph t res, igraph integer t order, igraph bool t directed);
The task
Desired signature: ```c igraph_error_t igraph_graph_power(const igraph_t *graph, igraph_t *res, igraph_integer_t order, igraph_bool_t directed); ```
Part of Lego-X/LegoFlow-SWE.