Beispiel #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;
 }
Beispiel #2
0
 public BidirectedEdge(DirectedGraphNode sourceNode, DirectedGraphNode targetNode, double weight) : base(sourceNode, targetNode, weight)
 {
 }