drathier / elm-graph / Graph.Pair

Graph.Pair provides an alternative api for all functions that in some way take an edge as an argument. All functions in the normal api take edges as two arguments. This module provides the 2-tuple alternatives to those functions. It's basically just doing uncurry for you.

getEdgeData : ( comparable, comparable ) -> Graph comparable data edgeData -> Maybe edgeData

Uncurried version of getEdgeData.

insertEdge : ( comparable, comparable ) -> Graph comparable data edgeData -> Graph comparable data edgeData

Uncurried version of insertEdge.

insertEdgeData : ( comparable, comparable ) -> edgeData -> Graph comparable data edgeData -> Graph comparable data edgeData

Uncurried version of insertEdgeData.

removeEdge : ( comparable, comparable ) -> Graph comparable data edgeData -> Graph comparable data edgeData

Uncurried version of removeEdge.

removeEdgeData : ( comparable, comparable ) -> Graph comparable data edgeData -> Graph comparable data edgeData

Uncurried version of removeEdgeData.

mapEdge : (( comparable, comparable ) -> Maybe edgeData1 -> Maybe edgeData2) -> Graph comparable data edgeData1 -> Graph comparable data edgeData2

Uncurried version of mapEdge.