コード例 #1
0
 internal static AdjacencyGraph<Node, Edge<Node>> GetGraphFromFile(int number)
 {
     var graph = new AdjacencyGraph<Node, Edge<Node>>();
     if (number == 1)
     {
         var graphMaker = new GraphMaker();
         string xmlPath = @"TestFiles\project1.xml";
         graph = graphMaker.CreateGraphFromXml(xmlPath);
     }
     if (number == 2)
     {
         var graphMaker = new GraphMaker();
         string xmlPath = @"TestFiles\project2.xml";
         graph = graphMaker.CreateGraphFromXml(xmlPath);
     }
     return graph;
 }
コード例 #2
0
 public void CreateGraphTest()
 {
     var graphMaker = new GraphMaker();
     string xmlPath = @"TestFiles\project1.xml";
     var g = graphMaker.CreateGraphFromXml(xmlPath);
 }