Пример #1
0
 public bool generateGraph_NumberOfEdge_Tests(int numberOfVertex)
 {
     WMH.Model.Graph graph = WMH.Model.GraphGenerator.GraphGenerator.generateGraph(numberOfVertex);
     if ((numberOfVertex * (numberOfVertex - 1) / 2) == graph.Edges.Count)
     {
         return(true);
     }
     return(false);
 }
Пример #2
0
 public int generateGraph_NumberOfVertex_Tests(int numberOfVertex)
 {
     WMH.Model.Graph graph = WMH.Model.GraphGenerator.GraphGenerator.generateGraph(numberOfVertex);
     return(graph.Vertexes.Count);
 }