Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
p3-public
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cse332-23su
p3-public
Commits
87cb7607
Commit
87cb7607
authored
1 year ago
by
Mohamed Awadalla
Browse files
Options
Downloads
Patches
Plain Diff
Updates for 23sp
parent
c4734db3
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/cse332/interfaces/BellmanFordSolver.java
+7
-0
7 additions, 0 deletions
src/main/java/cse332/interfaces/BellmanFordSolver.java
with
7 additions
and
0 deletions
src/main/java/cse332/interfaces/BellmanFordSolver.java
+
7
−
0
View file @
87cb7607
...
...
@@ -4,6 +4,13 @@ import java.util.List;
public
interface
BellmanFordSolver
{
/**
* Determine if the graph contains any negative-cost cycles by constructing a predecessor array
* and using GraphUtil.getCycle to generate the resulting List (see GraphUtil.java)
* @param adjMatrix adjacency matrix
* @param source starting node
* @return cycle, as a list, or empty list if there is no cycle
*/
List
<
Integer
>
solve
(
int
[][]
adjMatrix
,
int
source
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment