Skip to content

How to best improve results of an algorithm (get nodes and order in path) #400

Open
@luminize

Description

@luminize

Dear developers,
First; thank you for this library. Much leaner than boost :)

I use the Bellman Ford algorithm with negative edges to find the longest path in a directed graph. Great out of the box. For future work I would like to get the nodes that lie on the longest (or shortest) path. Think multiple jobs with (sequential) tasks on machines and finding the critical path. Might even get the delayed start times out as a result for all nodes.

I've been looking thru the source, and for starters I'm thinking of adding a vector of visited nodes or something to the results of the algorithm.

What would be the best way to work on this? Update the algorithm in the source code? Is there maybe a more general solution (already in the making)?

Best,
Bas

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:LowPriority Label for low priority issueUnder ReviewUnder Reviewcoresomething about coreenhancementNew feature or requesthacktoberfesthacktoberfest issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions