Skip to content

Commit

Permalink
Merge branch 'dev/partial_ordering' of github.com:osmosis-labs/osmosi…
Browse files Browse the repository at this point in the history
…s into dev/partial_ordering
  • Loading branch information
ValarDragon committed Apr 25, 2022
2 parents c9947b4 + d45e7f0 commit dea3eb5
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 dea3eb5

Please sign in to comment.