public void AddAndVerifySinkConnected(IMutableVertexAndEdgeListGraph <string, Edge <string> > g) { SetUp(g); this.augmentor.Compute(); foreach (string v in g.Vertices) { if (v == this.augmentor.SuperSink) { continue; } if (v == this.augmentor.SuperSink) { continue; } Assert.IsTrue(g.ContainsEdge(v, this.augmentor.SuperSink)); } }
private static void VerifySinkConnector <TVertex, TEdge>( IMutableVertexAndEdgeListGraph <TVertex, TEdge> g, AllVerticesGraphAugmentorAlgorithm <TVertex, TEdge> augmentor) where TEdge : IEdge <TVertex> { foreach (var v in g.Vertices) { if (v.Equals(augmentor.SuperSink)) { continue; } if (v.Equals(augmentor.SuperSink)) { continue; } Assert.True(g.ContainsEdge(v, augmentor.SuperSink)); } }
private static void VerifySinkConnector <TVertex, TEdge>( [NotNull] IMutableVertexAndEdgeListGraph <TVertex, TEdge> graph, [NotNull] AllVerticesGraphAugmentorAlgorithm <TVertex, TEdge> augmentor) where TEdge : IEdge <TVertex> { foreach (TVertex vertex in graph.Vertices) { if (vertex.Equals(augmentor.SuperSink)) { continue; } if (vertex.Equals(augmentor.SuperSink)) { continue; } Assert.IsTrue(graph.ContainsEdge(vertex, augmentor.SuperSink)); } }