public boolean connects(int vertex, T type) {
        BitSet types = edges.get(vertex);
        return types != null && types.get(index(type));
    }
public boolean connects ( int vertex , T type ) { BitSet types = edges . get ( vertex ) ; return types != null && types . get ( index ( type ) ) ; }
{@inheritDoc}