Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public void FindAllArticulationVertices_ThrowsException_ForDirectedGraphs()
        {
            var graph = new LiteralGraph("A>1>B", true);

            Assert.Throws <InvalidOperationException>(() => graph.FindAllArticulationVertices());
        }