Skip to content

Adding multigraph handling to astar_path function (migrated from Trac #731) #717

Closed

Description

@networkx-trac

Original ticket https://networkx.lanl.gov/trac/ticket/731
Reported 2012-06-10 by rtk08, assigned to @hagberg.

Version 1.6 astar_path function does not support shortest path calculation for multigraphs - a NetworkXError exception is thrown.

Finding the shortest path with an A Star algorithm for a multigraph currently requires reducing it to a graph with single (directed or not) edges between any two nodes. This is very inefficient, particularly if the graph in question is large.

I will modify the the astar_path function to handle path finding in multigraphs.

Activity

  1. ghost assigned on Dec 29, 2012
  2. added a commit that references this issue on Mar 20, 2020
    46166f8
  3. added a commit that references this issue on Jul 21, 2020
    f00babf
  4. added a commit that references this issue on Feb 4, 2023
    9991f0b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions