Experimental: this API is experimental and might be changed or removed in the future.

GraphView.CollectElements

Switch to Manual
public static void CollectElements (IEnumerable<GraphElement> elements, HashSet<GraphElement> collectedElementSet, Func<GraphElement,bool> conditionFunc);

Parameters

elementsThe enumerable of graph elements to select from.
collectedElementSetThe set of matching graph elements.
conditionFuncA function that determines whether a graph element is added to the set of matching graph elements.

Description

Retrieves the set of elements that match a specified condition. The matching elements are selected from an enumerable of graph elements.