Open mooreniemi opened 2 years ago
Hello, thank you for the detailed feedback! Those bindings are fairly low-level, and stay very close to the C library because I wanted to use them for benchmarks and also didn't thought people would come from python instead of C! xadj
and adjncy
do represent the raw CSR data (resp ROW_INDEX
and COL_INDEX
in the wikipedia page).
Of course, on searching I found that METIS had a pdf manual with the following explanation: [...] But I think this could be brought directly into the crate to help onboard new users. WDYT?
Sure, do you want to send a PR?
Also it looks like petgraph and graph directly support a CSR type -- that could be brought into this crate optionally as well?
Sounds also good API wise, although there could be some issues with borrowing since metis::Graph<'a>
doesn't own the graph... Maybe a GraphBuf
type (kind of like PathBuf
) could be of help?
Hi! Thanks so much for putting these bindings out there. As someone unfamiliar with METIS except pymetis, I find it a bit challenging to understand the documentation purely from Rust. Would you be open to some PRs to improve the documentation and examples?
For example, in the documentation I see the below, but I don't understand how to represent a graph as
xadj
andadjncy
.I also see this example but couldn't use it to better infer.
Of course, on searching I found that METIS had a pdf manual with the following explanation:
But I think this could be brought directly into the crate to help onboard new users. WDYT?
Also it looks like petgraph and graph directly support a CSR type -- that could be brought into this crate optionally as well?