bool INode.HasSuccessor(INode node) => StackDependencies.Any( dep => dep.Any(source => source.Node == node));
/// <summary> /// Obtains a collection of edges encoding all the dependencies that this node has. /// </summary> /// <returns>The edges.</returns> public IEnumerable <DataFlowEdge <TContents> > GetOutgoingEdges() { return(StackDependencies .SelectMany(d => d.GetEdges()) .Concat(VariableDependencies.SelectMany(d => d.GetEdges()))); }
IEnumerable <INode> INode.GetSuccessors() => StackDependencies .SelectMany( dep => dep, (dep, source) => source.Node);