Skip to content

Commit

Permalink
impl edge props as json, fix bugs, add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shivam-880 committed Dec 10, 2024
1 parent e997eee commit 7d2f438
Show file tree
Hide file tree
Showing 3 changed files with 239 additions and 339 deletions.
2 changes: 1 addition & 1 deletion raphtory-graphql/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ mod graphql_test {
let query = r#"
{
graph(path: "lotr") {
searchNodes(query: "kind:wizard", limit: 10, offset: 0) {
searchNodes(query: "temporal_properties.kind:wizard", limit: 10, offset: 0) {
name
}
}
Expand Down
10 changes: 5 additions & 5 deletions raphtory/src/search/into_indexed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl<G: StaticGraphViewOps + IntoDynamic> DynamicIndexedGraph for WindowedGraph<
.into_dynamic(),
node_index: self.graph.node_index,
edge_index: self.graph.edge_index,
reader: self.graph.reader,
node_reader: self.graph.node_reader,
edge_reader: self.graph.edge_reader,
}
}
Expand All @@ -43,7 +43,7 @@ impl<G: StaticGraphViewOps + IntoDynamic> DynamicIndexedGraph for LayeredGraph<I
graph: l.into_dynamic(),
node_index: self.graph.node_index,
edge_index: self.graph.edge_index,
reader: self.graph.reader,
node_reader: self.graph.node_reader,
edge_reader: self.graph.edge_reader,
}
}
Expand All @@ -56,7 +56,7 @@ impl<G: StaticGraphViewOps + IntoDynamic> DynamicIndexedGraph for NodeSubgraph<I
graph: g.into_dynamic(),
node_index: self.graph.node_index,
edge_index: self.graph.edge_index,
reader: self.graph.reader,
node_reader: self.graph.node_reader,
edge_reader: self.graph.edge_reader,
}
}
Expand All @@ -71,7 +71,7 @@ impl<G: StaticGraphViewOps + IntoDynamic> DynamicIndexedGraph
graph: g.into_dynamic(),
node_index: self.graph.node_index,
edge_index: self.graph.edge_index,
reader: self.graph.reader,
node_reader: self.graph.node_reader,
edge_reader: self.graph.edge_reader,
}
}
Expand All @@ -83,7 +83,7 @@ impl<G: StaticGraphViewOps + IntoDynamic> DynamicIndexedGraph for IndexedGraph<G
graph: self.graph.into_dynamic(),
node_index: self.node_index,
edge_index: self.edge_index,
reader: self.reader,
node_reader: self.node_reader,
edge_reader: self.edge_reader,
}
}
Expand Down
Loading

0 comments on commit 7d2f438

Please sign in to comment.