Shortest path for direct acyclic graphs (DAG)
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 58/100
Research direction
Search for dag_longest_path and topological_sort_by_dfs to find the existing DAG path implementation and its tests. Add the shortest-path entry point described in the issue, check its behavior with weighted DAGs, and extend the relevant tests so the new function’s results are verified.
Written by the indexing model from the issue text.
Description
Having the longest path algorithm for directed acyclic graphs means that we also have the shortest path algorithm for DAG.
function dag_shortest_path( g::::IsDirected, distmx::AbstractMatrix=weights(g); topological_order=topological_sort_by_dfs(g), ) = dag_longest_path( g, -distmx; topological_order )
- Dominant language
- Julia
- Stars
- 540
- Forks
- 131
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JuliaGraphs/Graphs.jl
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
JuliaGraphs/Graphs.jl#521 ·
-
Difficulty 5/5 Over a week Newbie friendliness 42/100
JuliaGraphs/Graphs.jl#504 · 4 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
JuliaGraphs/Graphs.jl#498 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
JuliaGraphs/Graphs.jl#497 · 1 comment ·
-
good first issue
Difficulty 3/5 1-2 days Newbie friendliness 35/100
JuliaGraphs/Graphs.jl#483 · 3 comments ·
All issues in JuliaGraphs/Graphs.jl
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
JuliaStats/LogExpFunctions.jl#134 · 2 comments ·
-
code bug PowerSystems 6.0
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Sienna-Platform/PowerSystems.jl#1849 ·
Maintainers usually reply within 7 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
FluxML/Metalhead.jl#407 ·
Maintainers usually reply within 1 day