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