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