Exemplo n.º 1
0
 public DirectedEdge(DirectedGraphNode sourceNode, DirectedGraphNode targetNode, double weight) : base(sourceNode, targetNode)
 {
     if (weight <= 0.0)
     {
         throw new ArgumentException("Weight must be positive.");
     }
     this.Weight = weight;
 }
Exemplo n.º 2
0
 public BidirectedEdge(DirectedGraphNode sourceNode, DirectedGraphNode targetNode, double weight) : base(sourceNode, targetNode, weight)
 {
 }