diff --git a/raphtory/src/db/api/view/edge.rs b/raphtory/src/db/api/view/edge.rs index 3d11123c2f..b3ac6eb398 100644 --- a/raphtory/src/db/api/view/edge.rs +++ b/raphtory/src/db/api/view/edge.rs @@ -421,11 +421,20 @@ mod test_edge_view { .layer_name() .all(|l| l.is_ok())); assert!(graph.edges().explode().layer_name().all(|l| l.is_ok())); - assert!(graph.edges().explode_layers().layer_name().all(|l| l.is_ok())); + assert!(graph + .edges() + .explode_layers() + .layer_name() + .all(|l| l.is_ok())); assert!(graph.edge(1, 2).unwrap().time().is_err()); assert!(graph.edges().time().all(|l| l.is_err())); - assert!(graph.edge(1, 2).unwrap().explode().time().all(|l| l.is_ok())); + assert!(graph + .edge(1, 2) + .unwrap() + .explode() + .time() + .all(|l| l.is_ok())); assert!(graph .edge(1, 2) .unwrap() diff --git a/raphtory/src/db/graph/graph.rs b/raphtory/src/db/graph/graph.rs index d75a74607f..f2eb47f048 100644 --- a/raphtory/src/db/graph/graph.rs +++ b/raphtory/src/db/graph/graph.rs @@ -2018,18 +2018,18 @@ mod db_tests { fn test(graph: &G) { let e = graph.edge(1, 2).expect("edge"); - let layer_exploded = e - .explode_layers() - .iter() - .flat_map(|e| { - e.explode().iter().filter_map(|e| { - e.edge - .layer() - .zip(e.time().ok()) - .map(|(layer, t)| (t, e.src().id(), e.dst().id(), *layer)) + let layer_exploded = e + .explode_layers() + .iter() + .flat_map(|e| { + e.explode().iter().filter_map(|e| { + e.edge + .layer() + .zip(e.time().ok()) + .map(|(layer, t)| (t, e.src().id(), e.dst().id(), *layer)) + }) }) - }) - .collect::>(); + .collect::>(); assert_eq!( layer_exploded, @@ -2057,18 +2057,18 @@ mod db_tests { let g = graph.window(0, 3); let e = g.edge(1, 2).expect("edge"); - let layer_exploded = e - .explode_layers() - .iter() - .flat_map(|e| { - e.explode().iter().filter_map(|e| { - e.edge - .layer() - .zip(Some(e.time().unwrap())) - .map(|(layer, t)| (t, e.src().id(), e.dst().id(), *layer)) + let layer_exploded = e + .explode_layers() + .iter() + .flat_map(|e| { + e.explode().iter().filter_map(|e| { + e.edge + .layer() + .zip(Some(e.time().unwrap())) + .map(|(layer, t)| (t, e.src().id(), e.dst().id(), *layer)) + }) }) - }) - .collect::>(); + .collect::>(); assert_eq!( layer_exploded,