Open sweep-ai[bot] opened 1 year ago
gralog-core/src/main/java/gralog/algorithm/FordFulkersonAlgorithm.java
✓
Sandbox logs for
trunk init
1/3 ✓⡿ Downloading Trunk 1.17.1... ⡿ Downloading Trunk 1.17.1... ⢿ Downloading Trunk 1.17.1... ⣻ Downloading Trunk 1.17.1... ⣽ Downloading Trunk 1.17.1... ⣾ Downloading Trunk 1.17.1... ⣷ Downloading Trunk 1.17.1... ✔ Downloading Trunk 1.17.1... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done ✔ 14 linters were enabled (.trunk/trunk.yaml) bandit 1.7.5 (68 python files) black 23.9.1 (67 python files) checkov 3.0.15 (2 yaml files) git-diff-check (514 files) isort 5.12.0 (68 python files) (created .isort.cfg) markdownlint 0.37.0 (1 markdown file) (created .markdownlint.yaml) oxipng 9.0.0 (13 png files) prettier 3.0.3 (5 css, 1 markdown, 2 yaml files) ruff 0.1.3 (68 python files) (created ruff.toml) shellcheck 0.9.0 (5 shell files) (created .shellcheckrc) shfmt 3.6.0 (5 shell files) trivy 0.46.1 (2 yaml files) trufflehog 3.62.1 (514 files) yamllint 1.32.0 (2 yaml files) (created .yamllint.yaml) Next Steps 1. Read documentation Our documentation can be found at https://docs.trunk.io 2. Get help and give feedback Join the Trunk community at https://slack.trunk.io
trunk fmt gralog-core/src/main/java/gralog/algorithm/FordFulkersonAlgorithm.java || exit 0
2/3 ✓Found no applicable linters for the requested path
trunk check --fix --print-failures gralog-core/src/main/java/gralog/algorithm/FordFulkersonAlgorithm.java
3/3 ✓Checked 1 file ✔ No issues
gralog-core/src/main/java/gralog/structure/Edge.java
✗
Sandbox logs for
trunk fmt gralog-core/src/main/java/gralog/structure/Edge.java || exit 0
1/2 ✓Found no applicable linters for the requested path
trunk check --fix --print-failures gralog-core/src/main/java/gralog/structure/Edge.java
2/2 ❌ (`1`)ISSUES gralog-core/src/main/java/gralog/structure/Edge.java:76:1 76:1 high trailing whitespace. git-diff-check/error Checked 1 file ✖ 1 new issue Run trunk upgrade to upgrade 1 linter
[X] Check gralog-core/src/main/java/gralog/structure/Edge.java
✗
Run gralog-core/src/main/java/gralog/structure/Edge.java through the sandbox.
[X] Check gralog-core/src/main/java/gralog/structure/Edge.java
✗
Sandbox logs for
trunk fmt gralog-core/src/main/java/gralog/structure/Edge.java || exit 0
1/2 ✓Found no applicable linters for the requested path
trunk check --fix --print-failures gralog-core/src/main/java/gralog/structure/Edge.java
2/2 ❌ (`1`)ISSUES gralog-core/src/main/java/gralog/structure/Edge.java:76:1 76:1 high trailing whitespace. git-diff-check/error Checked 1 file ✖ 1 new issue Run trunk upgrade to upgrade 1 linter
gralog-core/src/main/java/gralog/structure/Vertex.java
✓
Sandbox logs for
trunk init
1/3 ✓⡿ Downloading Trunk 1.17.1... ⡿ Downloading Trunk 1.17.1... ⢿ Downloading Trunk 1.17.1... ⣻ Downloading Trunk 1.17.1... ⣽ Downloading Trunk 1.17.1... ⣾ Downloading Trunk 1.17.1... ⣷ Downloading Trunk 1.17.1... ✔ Downloading Trunk 1.17.1... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done ✔ 14 linters were enabled (.trunk/trunk.yaml) bandit 1.7.5 (68 python files) black 23.9.1 (67 python files) checkov 3.0.15 (4 yaml files) git-diff-check (516 files) isort 5.12.0 (68 python files) (created .isort.cfg) markdownlint 0.37.0 (1 markdown file) (created .markdownlint.yaml) oxipng 9.0.0 (13 png files) prettier 3.0.3 (5 css, 1 markdown, 4 yaml files) ruff 0.1.3 (68 python files) (created ruff.toml) shellcheck 0.9.0 (5 shell files) (created .shellcheckrc) shfmt 3.6.0 (5 shell files) trivy 0.46.1 (4 yaml files) trufflehog 3.62.1 (516 files) yamllint 1.32.0 (4 yaml files) (created .yamllint.yaml) Next Steps 1. Read documentation Our documentation can be found at https://docs.trunk.io 2. Get help and give feedback Join the Trunk community at https://slack.trunk.io
trunk fmt gralog-core/src/main/java/gralog/structure/Vertex.java || exit 0
2/3 ✓Found no applicable linters for the requested path
trunk check --fix --print-failures gralog-core/src/main/java/gralog/structure/Vertex.java
3/3 ✓Checked 1 file ✔ No issues
gralog-fx/src/main/java/gralog/gralogfx/views/FordFulkersonView.java
✓
Sandbox logs for
trunk fmt gralog-fx/src/main/java/gralog/gralogfx/views/FordFulkersonView.java || exit 0
1/2 ✓Found no applicable linters for the requested path
trunk check --fix --print-failures gralog-fx/src/main/java/gralog/gralogfx/views/FordFulkersonView.java
2/2 ✓Checked 1 file ✔ No issues Run trunk upgrade to upgrade 1 linter
PR Feedback (click)
Description
This pull request implements the requested feature of visualizing the Ford-Fulkerson algorithm for finding the maximum flow in a network. It introduces a new algorithm class,
FordFulkersonAlgorithm
, which extends theAlgorithm
class and implements the Ford-Fulkerson algorithm. The existing structure classes,Edge
andVertex
, have been modified to store additional information required by the algorithm. Additionally, a new view class,FordFulkersonView
, has been created to visualize the algorithm's process.Summary of Changes
FordFulkersonAlgorithm
class ingralog.algorithm
packageEdge
class to includecapacity
andflow
instance variablesVertex
class to includevisited
instance variableFordFulkersonView
class ingralog.gralogfx.views
packagePlease review and merge this pull request to add the requested feature for visualizing the Ford-Fulkerson algorithm.
Fixes #2.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: