GraphLink::FindRelatedLinks Method (GraphSearchDirection, Predicate<GraphLink^>^, Predicate<GraphLink^>^)
Visual Studio 2015
Finds the links that match the acceptLink predicate. They are found by doing a breadth first search along links matching the traverseLink predicate, in the Source or Target direction designated by the searchDirection.
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
public:
IEnumerable<GraphLink^>^ FindRelatedLinks(
GraphSearchDirection searchDirection,
Predicate<GraphLink^>^ traverseLink,
Predicate<GraphLink^>^ acceptLink
)
Parameters
- searchDirection
- Type: Microsoft.VisualStudio.GraphModel::GraphSearchDirection
- traverseLink
- Type: System::Predicate<GraphLink^>^
- acceptLink
- Type: System::Predicate<GraphLink^>^
Return Value
Type: System.Collections.Generic::IEnumerable<GraphLink^>^The links accepted by the traversal, including the original link.
Show: