Skip to content
Snippets Groups Projects
Commit c98dcd4a authored by Timon Römer's avatar Timon Römer
Browse files

Adds colors

parent 41be29f5
Branches
No related tags found
No related merge requests found
......@@ -21,10 +21,16 @@ public static class GraphVisualizer
if (edge.IsBackwards)
{
msaglEdge.LabelText = $"{0}/{edge.Residual}";
msaglEdge.Attr.Color = Color.Gray;
}
else
{
msaglEdge.LabelText = $"{edge.MaxFlow-edge.Residual}/{edge.MaxFlow}";
if (edge.MaxFlow-edge.Residual > 0)
{
msaglEdge.Attr.Color = Color.Orange;
}
}
}
......
......@@ -130,6 +130,8 @@ namespace FlowForge
double maxFlow = _fordFulkerson.Run("1", "4");
Console.WriteLine($"Maximaler Fluss von Quelle zu Senke: {maxFlow}");
MessageBox.Show($"Maximaler Fluss von Quelle zu Senke: {maxFlow}");
/*
// Dictionary to store the flow along the augmenting path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment