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