func (g *Graph) SafeDisconnect(from, to string) error {
    g.innerLock.Lock()
    defer g.innerLock.Unlock()

    g.inner.RemoveEdge(dag.BasicEdge(from, to))