Graph.ConflictStrategy

Some pre-defined conflict handlers for add.

Members

Static functions

error
inout(Edge) error(inout(Edge) existingEdge, inout(Edge) newEdge)

Throw EdgeExistsException.

keep
inout(Edge) keep(inout(Edge) existingEdge, inout(Edge) newEdge)

Keep existingEdge – discard newEdge.

replace
inout(Edge) replace(inout(Edge) existingEdge, inout(Edge) newEdge)

Replace the existingEdge by newEdge.

sumWeights
Edge sumWeights(Edge existingEdge, Edge newEdge)

Return an edge with sum of both weights. If given payload will be kept from existingEdge .

Meta