public void AddInboundArc(Arc newArc, bool inMatching) { InboundArcs.AddLast(newArc); if (inMatching) { AddToMatching(); } Log.Info("Added inbound arc " + newArc + " to vertex " + Name); }
public virtual void ArcReverted(Arc arc) { if (!IsInMatching) { AddToMatching(); } if (arc.Start == this) { InboundArcs.Remove(arc); OutboundArcs.AddLast(arc); } if (arc.End == this) { OutboundArcs.Remove(arc); InboundArcs.AddLast(arc); } }