graph
, digraph
, and
addedge
no longer produce errors when they encounter
duplicate edges. Instead, the duplicate edges are added to the graph and the result
is a multigraph. The ismultigraph
function is useful to detect this situation, and
simplify
provides an easy way to remove the extra edges.