ConflictStrategy.error

Throw EdgeExistsException.

struct ConflictStrategy
static
inout(Edge)
error
()

Examples

1 auto g1 = Graph!int([1, 2]);
2 alias CS = g1.ConflictStrategy;
3 
4 g1 ~= g1.edge(1, 2);
5 
6 assertThrown!EdgeExistsException(g1.add!(CS.error)(g1.edge(1, 2)));

Meta