You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pathfinder's current endpoint takes in a source, destination, desired links, undesired links, and parameters. However, the parameter variable does not hold constraints such as "Bandwidth must be at least 34 units". In addition, parameter becomes an argument for nx.shortest_simple_paths(...) which uses weights and not metadata. For more information on David's and my constraint design, refer to #62
Possible fixes
parameter holds constraints and shortest_path branches if such constraints are present. This maintains the management of one endpoint. However, this requires if statements that may need to be refactored in the future.
A new endpoint is created that processes the JSON object differently from the current one. This removes the branching requirement. However, this requires the management of two endpoints instead of one.
Motivation
During the senior project, David created a different endpoint that obtains the source, destination, flexible, inflexible, and minimum flexible hits from a JSON object and processes them accordingly. The request in general has to be added to the API, or users will be unable to find a shortest path that meets their requirements.
System Details
OS: Ubuntu 18.04
The text was updated successfully, but these errors were encountered:
pathfinder/main.py
Lines 73 to 91 in d8ba617
Description
Pathfinder's current endpoint takes in a source, destination, desired links, undesired links, and parameters. However, the parameter variable does not hold constraints such as "Bandwidth must be at least 34 units". In addition, parameter becomes an argument for
nx.shortest_simple_paths(...)
which uses weights and not metadata. For more information on David's and my constraint design, refer to #62Possible fixes
parameter
holds constraints andshortest_path
branches if such constraints are present. This maintains the management of one endpoint. However, this requiresif
statements that may need to be refactored in the future.Motivation
During the senior project, David created a different endpoint that obtains the source, destination, flexible, inflexible, and minimum flexible hits from a JSON object and processes them accordingly. The request in general has to be added to the API, or users will be unable to find a shortest path that meets their requirements.
System Details
The text was updated successfully, but these errors were encountered: