code: public boolean remove(Object o) {
          if (!(o instanceof TypedEdge))
              return false;
  
          @SuppressWarnings("unchecked")
          TypedEdge<T> e = (TypedEdge<T>)o;
  
          if (e.from() == rootVertex) 
              return remove(e.to(), e.edgeType());
          else if (e.to() == rootVertex) 
              return remove(e.from(), e.edgeType());
          return false;
      }
docs: {@inheritDoc}