-
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.
Abstract types for orderings and colorings
- Loading branch information
1 parent
a27fcca
commit cd78bd0
Showing
4 changed files
with
89 additions
and
22 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 @@ | ||
struct d1_coloring <: AbstractColoring | ||
colpack_coloring::String | ||
end | ||
|
||
struct d2_coloring <: AbstractColoring | ||
colpack_coloring::String | ||
end | ||
|
||
struct acyclic_coloring <: AbstractColoring | ||
colpack_coloring::String | ||
end | ||
|
||
struct star_coloring <: AbstractColoring | ||
colpack_coloring::String | ||
end | ||
|
||
d1_coloring() = d1_coloring("DISTANCE_ONE") | ||
d2_coloring()= d2_coloring("DISTANCE_TWO") | ||
acyclic_coloring() = acyclic_coloring("ACYCLIC") | ||
star_coloring() = star_coloring("STAR") | ||
|
||
export d1_coloring, d2_coloring, acyclic_coloring, star_coloring |
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,42 @@ | ||
struct natural_ordering <: AbstractOrdering | ||
colpack_ordering::String | ||
end | ||
natural_ordering() = natural_ordering("NATURAL") | ||
|
||
struct largest_first_ordering <: AbstractOrdering | ||
colpack_ordering::String | ||
end | ||
largest_first_ordering() = largest_first_ordering("LARGEST_FIRST") | ||
|
||
struct dynamic_largest_first_ordering <: AbstractOrdering | ||
colpack_ordering::String | ||
end | ||
dynamic_largest_first_ordering() = dynamic_largest_first_ordering("DYNAMIC_LARGEST_FIRST") | ||
|
||
struct distance_two_largest_first_ordering <: AbstractOrdering | ||
colpack_ordering::String | ||
end | ||
distance_two_largest_first_ordering() = distance_two_largest_first_ordering("DISTANCE_TWO_LARGEST_FIRST") | ||
|
||
struct smallest_last_ordering <: AbstractOrdering | ||
colpack_ordering::String | ||
end | ||
smallest_last_ordering() = smallest_last_ordering("SMALLEST_LAST") | ||
|
||
struct distance_two_smallest_last_ordering <: AbstractOrdering | ||
colpack_ordering::String | ||
end | ||
distance_two_smallest_last_ordering() = distance_two_smallest_last_ordering("DISTANCE_TWO_SMALLEST_LAST") | ||
|
||
struct incidence_degree_ordering <: AbstractOrdering | ||
colpack_ordering::String | ||
end | ||
incidence_degree_ordering() = incidence_degree_ordering("INCIDENCE_DEGREE") | ||
|
||
struct distance_two_incidence_degree_ordering <: AbstractOrdering | ||
colpack_ordering::String | ||
end | ||
distance_two_incidence_degree_ordering() = distance_two_incidence_degree_ordering("DISTANCE_TWO_INCIDENCE_DEGREE") | ||
|
||
export natural_ordering, largest_first_ordering, dynamic_largest_first_ordering, distance_two_largest_first_ordering | ||
export smallest_last_ordering, distance_two_smallest_last_ordering, incidence_degree_ordering, distance_two_incidence_degree_ordering |
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