rs_graph_to_edges.Rd
Each undirected edge comes out once, ready for igraph::add_edges().
igraph::add_edges()
rs_graph_to_edges(ptr)
External pointer to the Rust graph.
A list with
edges - Integer vector with the flattened edge pairs (1-indexed!), c(from_1, to_1, from_2, to_2, ...).
c(from_1, to_1, from_2, to_2, ...)
weights - Numeric vector. One weight per pair.