internal static bool IsUpstreamOf(this NodeModel node, NodeModel otherNode) { var gathered = new List<NodeModel>(); otherNode.AllUpstreamNodes(gathered); return gathered.Contains(node); }