public Edge(EdgeCollection edgeCollection, Vertex source, Vertex target) { EdgeCollection = edgeCollection; Source = source; Target = target; Weight = new Random().Next(0, 50); }
public Edge(EdgeCollection edgeCollection, Vertex source, Vertex target, int weight) { EdgeCollection = edgeCollection; Source = source; Target = target; Weight = weight; }
public Graph(Boolean isAutomaticWeights) { IsAutomaticWeights = isAutomaticWeights; VertexCollection = new VertexCollection(this); EdgeCollection = new EdgeCollection(this); }