public Arc(Nodes.Node fromNode, Nodes.Node toNode, Systems.PlaceTransitionNet housingSystem) : base() { SortNodes(); if (!IsAllowed()) { throw new System.Exception("Arc " + arcID + " not allowed!"); } fromNode.AddArc(this); toNode.AddArc(this); arcID = housingSystem.AddElement(this); }