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

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

            otherNode.AllUpstreamNodes(gathered);

            return(gathered.Contains(node));
        }