rs_graph_from_edges.Rd
Builds an undirected graph. Each edge should be listed once; duplicates are kept as separate entries, as in igraph. Weights are stored as f32.
f32
rs_graph_from_edges(edges, weights, n_nodes)
Integer vector. Flattened edge pairs (1-indexed!), c(from_1, to_1, from_2, to_2, ...).
c(from_1, to_1, from_2, to_2, ...)
Numeric vector. One weight per pair.
Integer. Number of nodes.
External pointer to the Rust graph.