Closed LibraChris closed 11 months ago
Attention: 4 lines
in your changes are missing coverage. Please review.
Comparison is base (
447910a
) 32.06% compared to head (c14106f
) 28.72%. Report is 5 commits behind head on developer.
Files | Patch % | Lines |
---|---|---|
src/Graphoscope/Measures/LongestPath.fs | 94.36% | 2 Missing and 2 partials :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This pull request adds a new feature to Graphoscope – the Longest Path Algorithm as mentioned in #58. Additionally, it includes tests to ensure the correctness of the algorithm and checks for graph cyclicity.
Changes Made
Added Longest Path Algorithm:
Implemented an inverse Dijkstra's algorithm for finding the longest paths from a specified node in a DAG.
Introduced a new function, compute, in the Measures.LongestPath module to calculate the longest path in a directed acyclic graph (DAG).
Added a function testing if a directed graph is acyclic
Graph Cyclicity Tests:
Added tests in the Tests.Measures.LongestPathTests module to verify the correctness of the algorithm.
Included tests to ensure that the algorithm correctly identifies whether the input graph is a directed acyclic graph (DAG) or not.