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

Prioritize cycles with the same backward / min cut edges. #112

Open
jimbethancourt opened this issue Oct 15, 2024 · 0 comments
Open

Prioritize cycles with the same backward / min cut edges. #112

jimbethancourt opened this issue Oct 15, 2024 · 0 comments

Comments

@jimbethancourt
Copy link
Collaborator

jimbethancourt commented Oct 15, 2024

Cycles with the same edges should be prioritized first. The highest frequency edges should be prioritized first.

Maybe do something like this?

        Map<DefaultWeightedEdge, Integer> minCutEdgeCount = new HashMap<>();
        rankedCycles.stream().flatMap(rankedCycle -> rankedCycle.getMinCutEdges().stream()).forEach(minCutEdge ->
                minCutEdgeCount.put(minCutEdge, minCutEdgeCount.getOrDefault(minCutEdge, 0) + 1));
@jimbethancourt jimbethancourt changed the title Prioritize cycles with the same minimum cut edges. Prioritize cycles with the same backward / min cut edges. Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant