Repository navigation
Rewrite 2 - #3811
Merged
Merged
Rewrite 2#3811
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## cupdlp-csparse #3811 +/- ##
==================================================
+ Coverage 76.15% 76.18% +0.02%
==================================================
Files 467 468 +1
Lines 116789 116881 +92
Branches 18144 18191 +47
==================================================
+ Hits 88946 89048 +102
+ Misses 27603 27593 -10
Partials 240 240 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
galabovaa
force-pushed
the
cupdlp-csparse-rewrite-2
branch
from
November 26, 2026 15:24
c28b14f to
d2696f1
Compare
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Rewrites
ipx::DepthFirstSearch,ipx::AugmentingPathand BASICLU'slu_dfsfrom the published algorithms, so IPX and BASICLU no longer follow CSparse's
cs_dfs.c/cs_augment.c. Signatures and callers are unchanged. TheCSparse citations are replaced with references to Tarjan (1972),
Gilbert & Peierls (1988) and Duff (1981).
DepthFirstSearch/lu_dfs: iterative DFS. Finished nodes are writtendownward from
top, giving a topological order.lu_dfsnow has one loopin place of the separate
dfs/dfs_endfunctions.AugmentingPath: DFS for an alternating path, with Duff's cheapassignment check. Over all calls, the cheap checks cost O(nnz).
Testing
check/TestSparseGraphUtils.cpp([highs_sparse_graph]): tests eachroutine against its contract on random graphs, using independent
reference computations. All pass.
(ASan/UBSan on): outputs identical on every call.
check/instances; theexception,
issue-3166, hits the time limit with both versions.Checklist
latestbranch