Class TestEdge

    • Method Detail

      • cloneEdge

        public TestEdge cloneEdge​(AbstractTestVertex start,
                                  AbstractTestVertex end)
        Description copied from interface: VisualEdge
        Creates a new edge of this type using the given vertices.

        Implementation Note: the odd type 'E' below is there so that subclasses can return the type of their implementation. Basically, the decision was made to have each subclass suppress the warning that appears, since they know the type is safe. Alternatively, each client would have to cast the return type, which seems less desirable.

        Parameters:
        start - the start vertex
        end - the end vertex
        Returns:
        the new edge