Skip to content

Commit

Permalink
Fix bug when eliminating suboptimal indirect paths where we always as…
Browse files Browse the repository at this point in the history
…sumed a direct key edge existed
  • Loading branch information
sachindshinde committed Oct 1, 2024
1 parent df5eb3c commit 9d98494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query-graphs-js/src/graphPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,7 @@ function advancePathWithNonCollectingAndTypePreservingTransitions<TTrigger, V ex
if (prevSubgraphVertex
&& (
backToPreviousSubgraph
|| hasValidDirectKeyEdge(toAdvance.graph, prevSubgraphVertex, edge.tail.source, conditionResolver, maxCost) != undefined
|| hasValidDirectKeyEdge(toAdvance.graph, prevSubgraphVertex, edge.tail.source, conditionResolver, maxCost)

Check warning on line 1589 in query-graphs-js/src/graphPath.ts

View check run for this annotation

Codecov / codecov/patch

query-graphs-js/src/graphPath.ts#L1589

Added line #L1589 was not covered by tests
)
) {
debug.groupEnd(
Expand Down

0 comments on commit 9d98494

Please sign in to comment.