Rewrite ingest command
This commit is contained in:
parent
f819f5bf69
commit
3aa8222b6b
8 changed files with 502 additions and 242 deletions
|
|
@ -196,6 +196,10 @@ impl Graph {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn add_node(&mut self) {
|
||||
self.nodes.push(EdgeIdx::new(self.edges.len()));
|
||||
}
|
||||
|
||||
pub fn check_consistency(&self) {
|
||||
if self.nodes.is_empty() {
|
||||
assert!(self.edges.is_empty(), "edges must belong to existing nodes");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue