Ejemplo n.º 1
0
        public void ModifyIsDirectedProperty()
        {
            ISimpleAdjList net = new SimpleAdjList(Guid.NewGuid());

            Assert.IsFalse(net.IsDirected, "IsDirected should be false");

            SimpleAdjListDirectedModifier surg = new SimpleAdjListDirectedModifier();
            surg.ModifyIsDirectedProperty(net, !net.IsDirected);

            Assert.IsTrue(net.IsDirected, "IsDirected should be true");
        }
Ejemplo n.º 2
0
 internal IDirectedModifier _CreateDirectedModifyer(INetwork network)
 {
     IDirectedModifier tool = null;
     if (network != null)
     {
         if (network is SimpleAdjList)
         {
             tool = new SimpleAdjListDirectedModifier();
         }
     }
     return tool;
 }