Example #1
0
        private static void Main()
        {
            var args   = File.ReadAllLines("in.txt");
            var finder = new MaximumMatchingFinder(args);

            finder.FindMaxFlow();
            File.WriteAllText("out.txt", finder.GetMatching());
        }
 public void MyArgs()
 {
     sut = new MaximumMatchingFinder(myArgs);
     sut.FindMaxFlow();
     sut.GetMatching().Should().BeEquivalentTo(myExpectedAnswer);
 }
 public void TestInput2()
 {
     sut = new MaximumMatchingFinder(input2);
     sut.FindMaxFlow();
     sut.GetMatching().Should().Be("4 3 2 1");
 }
 public void FindMaxFlow()
 {
     sut.FindMaxFlow();
     sut.MaxFlow.Should().Be(4);
     sut.GetMatching().Should().BeEquivalentTo(expectedAnswer);
 }