pub fn read_dl<R: Read>(input: R, directed: bool) -> IgraphResult<DlGraph>Expand description
Read a graph from UCINET DL format.
Supports fullmatrix, edgelist1, and nodelist1 data formats. Case-insensitive keywords. Vertex IDs in edgelist1 and nodelist1 are 1-based.
ยงExamples
use rust_igraph::read_dl;
let input = b"DL n=3\nformat = edgelist1\ndata:\n1 2\n2 3\n1 3\n";
let result = read_dl(&input[..], true).unwrap();
assert_eq!(result.graph.vcount(), 3);
assert_eq!(result.graph.ecount(), 3);