Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decompression from vector of colors? #67

Open
gdalle opened this issue Aug 12, 2024 · 3 comments
Open

Decompression from vector of colors? #67

gdalle opened this issue Aug 12, 2024 · 3 comments
Assignees
Labels
feature New feature or extension

Comments

@gdalle
Copy link
Owner

gdalle commented Aug 12, 2024

Will never be used in practice with GreedyColoringAlgorithm, but one could imagine optimal colorings with JuMP, which would only output a vector of colors.

#71 contains a LinearSystemColoringResult, which is part of the answer in the symmetric case.

@gdalle gdalle self-assigned this Aug 12, 2024
@gdalle gdalle changed the title Remove decompression from AbstractColoringResult Remove decompression from AbstractColoringResult? Aug 12, 2024
@gdalle gdalle changed the title Remove decompression from AbstractColoringResult? Decompression from AbstractColoringResult? Aug 12, 2024
@gdalle gdalle added this to the v0.4 milestone Aug 12, 2024
@gdalle gdalle changed the title Decompression from AbstractColoringResult? Decompression from vectof of colors? Aug 12, 2024
@gdalle gdalle changed the title Decompression from vectof of colors? Decompression from vector of colors? Aug 12, 2024
@gdalle gdalle removed this from the v0.4 milestone Aug 13, 2024
@gdalle gdalle added the feature New feature or extension label Aug 13, 2024
@gdalle
Copy link
Owner Author

gdalle commented Oct 6, 2024

For star and acyclic colorings, we can actually reverse-engineer the set of stars / trees because they are 2-colored!!

@amontoison
Copy link
Collaborator

Is it not possible that a color is used in different stars?
For the acyclic coloring, a color can be used in different trees.

@gdalle
Copy link
Owner Author

gdalle commented Oct 6, 2024

Yes, but if we iterate over all pairs of colors we get each tree or star exactly once. Quoting from the decompression paper:

A star coloring of a graph is a distance-1 coloring where, in addition, every path in the graph on four vertices (P4) is required to use at least three colors. An acyclic coloring of a graph is a distance-1 coloring with the further restriction that every cycle in the graph uses at least three colors. The names star and acyclic coloring are due to the structure of twocolored induced subgraphs. In a star-colored graph, a subgraph induced by any two color classes—sets of vertices having the same color—is a collection of stars. A star is a complete bipartite graph in which one of the vertex sets consists of a single vertex, called the hub. The other vertices of the star are spokes. An edge is a degenerate case of a star, in which one vertex is the hub and the other, the spoke, assigned arbitrarily. Similarly, in an acyclically colored graph, a subgraph induced by any two color classes is a collection of trees, and thus acyclic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or extension
Projects
None yet
Development

No branches or pull requests

2 participants