public void MinVertexCover_AdjacencyListGraph_Smoke_Test() { var graph = new Advanced.Algorithms.DataStructures.Graph.AdjacencyList.Graph <int>(); graph.AddVertex(0); graph.AddVertex(1); graph.AddVertex(2); graph.AddVertex(3); graph.AddVertex(4); graph.AddEdge(0, 1); graph.AddEdge(0, 2); graph.AddEdge(0, 3); graph.AddEdge(0, 4); var algorithm = new MinVertexCover <int>(); var result = algorithm.GetMinVertexCover(graph); Assert.IsTrue(result.Count() <= 2); graph.RemoveEdge(0, 4); graph.AddEdge(1, 4); result = algorithm.GetMinVertexCover(graph); Assert.IsTrue(result.Count() <= 4); }