Finished refactoring

This commit is contained in:
elvis
2025-08-24 03:35:32 +02:00
parent 3a4c4d43c2
commit 9a80044a89
11 changed files with 511 additions and 301 deletions

View File

@ -99,11 +99,11 @@ where
{
fn map_edges(
&self,
edge_map: &super::structure::RSassert,
edge_map: &super::assert::types::Assert,
translator: &mut super::translator::Translator
) -> Result<
Graph<System,
super::structure::assert::AssertReturnValue, Ty, Ix>
super::assert::types::AssertReturnValue, Ty, Ix>
, String>;
}
@ -112,9 +112,11 @@ impl<'a> MapEdges<'a, System, Label, Directed, u32>
{
fn map_edges(
&self,
edge_map: &super::structure::RSassert,
edge_map: &super::assert::types::Assert,
translator: &mut super::translator::Translator
)-> Result<Graph<System, super::structure::assert::AssertReturnValue, Directed, u32>, String> {
)-> Result<Graph<System, super::assert::types::AssertReturnValue,
Directed, u32>
, String> {
use petgraph::graph::EdgeIndex;
let mut g = Graph::with_capacity(self.node_count(), self.edge_count());