UTSAVS26 / PySnippets

Collection of reusable Python code snippets for all.
https://sites.google.com/view/pysnippets/
MIT License
26 stars 76 forks source link

[Feature Request]: Implementation of Longest path in DAG under Dynamic Programming #357

Open shuvojitss opened 1 week ago

shuvojitss commented 1 week ago

Is there an existing issue for this?

Feature Description

Description

Given a weighted directed acyclic graph (DAG) and a source vertex, find the cost of the longest path from the source vertex to all other vertices present in the graph. If the vertex can’t be reached from the given source vertex, print its distance as infinity.

Input:

Source vertex and the cost matrix or the dajacency list as per your wish.

Output:

Longest path from source vertex to all other vertices.

Record

Full Name

Shuvojit Samanta

Participant Role

GSSOC

github-actions[bot] commented 1 week ago

🙌 Thank you for bringing this issue to our attention! We appreciate your input and will investigate it as soon as possible.

Feel free to join our community on Discord to discuss more!

shuvojitss commented 1 week ago

@UTSAVS26 please assign the issue.

UTSAVS26 commented 1 week ago

@UTSAVS26 please assign the issue.

You can raise a PR of this issue i will assign you that alongwith labels.