-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b1ceb8
commit 10d0892
Showing
2 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
""" | ||
colpack(file::String, method::String, order::String; verbose::Bool=false) | ||
Perform graph coloring. | ||
- `file`: Indicates the graph file path. | ||
- `method`: Indicates the method. | ||
- `order`: Indicates the ordering. | ||
- `verbose`: Indicates verbose flag will be turned on and there will display more rich information. | ||
Examples: | ||
colpack("./bcsstk01.mtx", "DISTANCE_ONE", "RANDOM", verbose=true) | ||
colpack("./bcsstk01.mtx", "ROW_PARTIAL_DISTANCE_TWO", "NATURAL", verbose=true) | ||
colpack("./bcsstk01.mtx", "COLUMN_PARTIAL_DISTANCE_TWO", "NATURAL", verbose=true) | ||
""" | ||
function colpack(file::String, method::String, order::String; verbose::Bool=false) | ||
if verbose | ||
run(`$(ColPack_jll.ColPack()) -f $file -m $method -o $order -v`) | ||
else | ||
run(`$(ColPack_jll.ColPack()) -f $file -m $method -o $order`) | ||
end | ||
end |