You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature: Add method for querying toVertex/fromVertex and steps #174
right now I haave two cases, which dont have simple way to ahieve
1: query all the direct vertexs( from vertexes) to a specified Vertex
2: query all the direct vertexes(target Vertexs) from a specified Vertex.
there may be similar requirements for different steps, so hope it supplies two method
It sounds like PredecessorMap and AdjacencyMap already do this. Both return a map[K]map[K]Edge[K] of incoming (for PredecessorMap) and outgoing (for AdjacencyMap) Edges.
Edges have a Source and Target, so you can grab the corresponding Vertices from the Graph using either of those.
Activity
davemcphee commentedon May 21, 2024
It sounds like
PredecessorMapandAdjacencyMapalready do this. Both return amap[K]map[K]Edge[K]of incoming (forPredecessorMap) and outgoing (forAdjacencyMap) Edges.Edges have a Source and Target, so you can grab the corresponding Vertices from the Graph using either of those.