/// <summary> /// Get an enumerator to all data inputs to a node. /// </summary> public static Topology.InputConnectionCacheWalker GetInputsForPatching(this Topology.VertexCache vertexCache) => vertexCache.GetParentConnections(Topology.TraversalCache.Hierarchy.Alternate);
/// <summary> /// Get an enumerator to inputs connected to this port. /// </summary> /// <remarks> /// In DFG, it only makes sense to have one input to any input port, hence the naming. /// It should be checked. /// </remarks> public static Topology.InputConnectionCacheWalker GetInputForPatchingByPort(this Topology.VertexCache vertexCache, InputPortArrayID port) => vertexCache.GetParentConnectionsByPort(port, Topology.TraversalCache.Hierarchy.Alternate);