graph: consider SetEdge() returning an error
Created by: vladimir-ch
The motivation is that for some graphs (e.g., planar) not every edge is legal and checking if setting an edge is possible can be the same amount of work as setting it and seeing if it fails.
However, that would mean adding error checking and responding to errors from SetEdge() all over the place for a very minor application.