MCPcopy Index your code
hub / github.com/Effect-TS/effect / getTraversalNeighbors

Function getTraversalNeighbors

packages/effect/src/Graph.ts:2108–2115  ·  view source on GitHub ↗
(
  graph: Graph<N, E, T> | MutableGraph<N, E, T>,
  nodeIndex: NodeIndex,
  direction: Direction
)

Source from the content-addressed store, hash-verified

2106}
2107
2108const getTraversalNeighbors = <N, E, T extends Kind>(
2109 graph: Graph<N, E, T> | MutableGraph<N, E, T>,
2110 nodeIndex: NodeIndex,
2111 direction: Direction
2112): Array<NodeIndex> =>
2113 graph.type === "undirected"
2114 ? getUndirectedNeighbors(graph as any, nodeIndex)
2115 : neighborsDirected(graph, nodeIndex, direction)
2116
2117const getTraversableNeighbor = <N, E, T extends Kind>(
2118 graph: Graph<N, E, T> | MutableGraph<N, E, T>,

Callers 2

bellmanFordFunction · 0.85
nextMappedFunction · 0.85

Calls 2

getUndirectedNeighborsFunction · 0.85
neighborsDirectedFunction · 0.85

Tested by

no test coverage detected