public void ApplyUnDirectedEdge() { graph = new RGGraph <string>(vertices); int noOfVertices = vertices.Count; for (int i = 0; i < noOfVertices; i++) { int randomEdgeCount = Random.Range(MINEDGECOUNT, MAXEDGECOUNT + 1); for (int j = 1; j <= randomEdgeCount; j++) { RGVertex <string> randomVertex = GetRandomVertex(); int randomEdgeCost = Random.Range(MINEDGECOST, MAXEDGECOST + 1); graph.CreateUnDirectedEdge(vertices[i], randomVertex, randomEdgeCost); } } }
public void CleanUp() { vertices.Clear(); vertices = null; graph = null; }