( graph: Graph<N, E, T> | MutableGraph<N, E, T>, nodeIndex: NodeIndex, direction: Direction )
| 2106 | } |
| 2107 | |
| 2108 | const 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 | |
| 2117 | const getTraversableNeighbor = <N, E, T extends Kind>( |
| 2118 | graph: Graph<N, E, T> | MutableGraph<N, E, T>, |
no test coverage detected