Skip to content

Commit 98a2926

Browse files
hhirtzgfaster
andcommitted
Remove numbering feature and add unchecked constructors
This fixes the unsound Graph::new and Mesh::new. See the following report for more details: <#11> Co-authored-by: Gavin Rohrer <[email protected]>
1 parent f278464 commit 98a2926

File tree

3 files changed

+364
-30
lines changed

3 files changed

+364
-30
lines changed

examples/graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fn main() -> Result<(), metis::Error> {
2121
9, 13,
2222
];
2323
let mut part = vec![0x00; 15];
24-
Graph::new(1, 2, xadj, adjncy).part_recursive(&mut part)?;
24+
Graph::new(1, 2, xadj, adjncy)?.part_recursive(&mut part)?;
2525
println!("{:?}", part);
2626

2727
Ok(())

0 commit comments

Comments
 (0)