public boolean contains(Object o) {
        if (o instanceof Edge) {
            Edge e = (Edge)o;
            return (e.from() == rootVertex && vertexToEdges.containsMapping(e.to(), e))
                || (e.to() == rootVertex && vertexToEdges.containsMapping(e.from(), e));            
        }
        return false;
    }
public boolean contains ( Object o ) { if ( o instanceof Edge ) { Edge e = ( Edge ) o ; return ( e . from ( ) == rootVertex && vertexToEdges . containsMapping ( e . to ( ) , e ) ) || ( e . to ( ) == rootVertex && vertexToEdges . containsMapping ( e . from ( ) , e ) ) ; } return false ; }
{@inheritDoc}