Skip to content

Commit d2d9dbd

Browse files
Remove bad things from rebase
1 parent a27af91 commit d2d9dbd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.changeset/good-regions-care.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/effect/src/Graph.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,6 +1493,11 @@ export const neighbors = <N, E, T extends Kind = "directed">(
14931493
graph: Graph<N, E, T> | MutableGraph<N, E, T>,
14941494
nodeIndex: NodeIndex
14951495
): Array<NodeIndex> => {
1496+
// For undirected graphs, use the specialized helper that returns the other endpoint
1497+
if (graph.type === "undirected") {
1498+
return getUndirectedNeighbors(graph as any, nodeIndex)
1499+
}
1500+
14961501
const adjacencyList = graph.adjacency.get(nodeIndex)
14971502
if (adjacencyList === undefined) {
14981503
return []

0 commit comments

Comments
 (0)