Skip to content

Commit

Permalink
Update osmoutils/partialord/internal/dag/dag.go
Browse files Browse the repository at this point in the history
Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com>
  • Loading branch information
ValarDragon and mattverse authored Apr 24, 2022
1 parent 24b8fd3 commit d45e7f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions osmoutils/partialord/internal/dag/dag.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ func (dag *Dag) deleteEdge(u, v int) {
delete(dag.directedEdgeList[v], u)
}

// AddEdge checks if either edge between u and v exists and adds a directed edge from u -> v
func (dag *Dag) AddEdge(u, v string) error {
uIndex, uExists := dag.nodeNameToId[u]
vIndex, vExists := dag.nodeNameToId[v]
Expand Down

0 comments on commit d45e7f0

Please sign in to comment.