예제 #1
0
        public void SetDirectedness_ChangesNetworkDirectedness(int nodeCount, bool isDirected)
        {
            //Arrange
            var net = new BasicAdjList(Guid.NewGuid());
            for (int i = 0; i < nodeCount; i++)
                net.CreateNode();

            net.SetDirectedness(isDirected);
            Assert.Equal(net.IsDirected, isDirected);
        }