diff --git a/src/graph.rs b/src/graph.rs index 4c4128f..783d953 100644 --- a/src/graph.rs +++ b/src/graph.rs @@ -40,7 +40,6 @@ pub enum Label { End, Outer, Core, - Peer, } #[derive(Debug, EnumAsInner, Clone, Copy, PartialEq)] diff --git a/src/layout.rs b/src/layout.rs index 73e1301..d931262 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -56,7 +56,6 @@ impl Layout { self.fail_and_remove_if_collides_except(dot, &[])?; self.insert_into_rtree(dot.tag()); - self.triangulate(); Ok(dot) } @@ -120,7 +119,6 @@ impl Layout { self.fail_and_remove_if_collides_except(bend, &[from.tag(), to.tag(), core.tag()])?; self.insert_into_rtree(bend.tag()); - self.triangulate(); Ok(bend) } @@ -165,7 +163,6 @@ impl Layout { self.remove_from_rtree(bend.tag()); self.move_dot(dot, to)?; self.insert_into_rtree(bend.tag()); - self.triangulate(); Ok(()) } @@ -198,7 +195,6 @@ impl Layout { } self.insert_into_rtree(dot.tag()); - self.triangulate(); let mut cur_bend = self.primitive(dot).outer(); loop { @@ -214,27 +210,6 @@ impl Layout { Ok(()) } - pub fn nodes(&self) -> impl Iterator + '_ { - self.rtree.iter().map(|wrapper| wrapper.data) - } - - pub fn edges(&self) -> impl Iterator + '_ { - self.graph.edge_indices().map(|edge| { - let endpoints = self.graph.edge_endpoints(edge).unwrap(); - ( - Index::