VertexTraverse Method (Direction, ISetEdgeType) |
Selects all neighbor Vertices from or to this vertex and for the given edge types.
Namespace:
VelocityGraph
Assembly:
VelocityGraph (in VelocityGraph.dll) Version: 11.1.0.0 (11.1)
Syntax public Dictionary<Vertex, HashSet<Edge>> Traverse(
Direction dir,
ISet<EdgeType> edgeTypesToTraverse = null
)
Public Function Traverse (
dir As Direction,
Optional edgeTypesToTraverse As ISet(Of EdgeType) = Nothing
) As Dictionary(Of Vertex, HashSet(Of Edge))
public:
Dictionary<Vertex^, HashSet<Edge^>^>^ Traverse(
Direction dir,
ISet<EdgeType^>^ edgeTypesToTraverse = nullptr
)
member Traverse :
dir : Direction *
?edgeTypesToTraverse : ISet<EdgeType>
(* Defaults:
let _edgeTypesToTraverse = defaultArg edgeTypesToTraverse null
*)
-> Dictionary<Vertex, HashSet<Edge>>
Parameters
- dir
- Type: VelocityGraph.Frontenac.BlueprintsDirection
Direction to traverse edges - edgeTypesToTraverse (Optional)
- Type: System.Collections.GenericISetEdgeType
the type of edges to follow, by default null which means follow all edge types
Return Value
Type:
DictionaryVertex,
HashSetEdgeAll paths to neighbor vertices
See Also