Example #1
0
  /**
   * This operation returns a clone of the Edge using a deep copy. The copy will not be registered
   * with its vertices.
   *
   * @return
   *     <p>The new clone.
   */
  @Override
  public Object clone() {

    // Initialize a new object.
    Edge object = new Edge();

    // Copy the contents from this one.
    object.copy(this);

    // Return the newly instantiated object.
    return object;
  }