public void FindAllArticulationVertices_FindsArticulationsForUndirectedGraphs([NotNull] string relationships, string expected) { var graph = new LiteralGraph(relationships, false); var actual = string.Join(",", graph.FindAllArticulationVertices()); Assert.AreEqual(expected, actual); }
public void FindAllArticulationVertices_ThrowsException_ForDirectedGraphs() { var graph = new LiteralGraph("A>1>B", true); Assert.Throws <InvalidOperationException>(() => graph.FindAllArticulationVertices()); }