def match_i(instance1,instance2):
    """Return True if given instances match, i.e., contain the same vertex and edge object instances."""
    return (instance1.vs == instance2.vs) and (instance1.es == instance2.es)