This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
[BUG] mincut gives incorrect results for some SimpleGraphs #1589
Labels
bug
confirmed bug producing incorrect results
Description of bug
The
mincut
function produces incorrect partitions for some graphs.How to reproduce
The following code produces incorrect results:
Expected behavior
cut_size
should be at most 2 because both vertex 2 and vertex 5 have degree 2.Actual behavior
cut_size
is 3. In this instance, the cut given separates vertex 4 from the rest of the graph.In experiments with random graphs, this behavior arises fairly frequently.
Version information
versioninfo()
surrounded by backticks (``)] status LightGraphs
surrounded by backticks (``)The text was updated successfully, but these errors were encountered: