Skip to content

Shortest path for direct acyclic graphs (DAG) #445

@rjdverbeek

Description

@rjdverbeek

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 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions