CircDLelement<E> implements a circular doubly linked list element in BRIDGES and is inherited from DElement<E>



How does the CircDLelement<E> work?

CircDLelement<E> stands for Circular Doubly Linked Element, and is a container that has two links, pointing to two other doubly linked elements. So a CircDLelement<E> “knows” who it’s pointing at, AND it knows who pointed at it.



In this example, calling getNext() on CircDLelement2 will return CircDLelement3. Calling getPrev() on CircDLelement2 will return CircDLelement1. CircDLelement3 points to CircDLelement1, and CircDLelement1 points to CircDLelement3.

Notice that, since CircDLelement<E> has a getPrev() method, they can move forwards AND backwards through the linked elements.


See also

This tutorial gives an introduction to the usage of cicular double linked list. You can find the complete documentation of the features in the Doxygen documentation of the following classes and functions:

  1. CircDLelement [Java] [C++] [Python]
  2. Element [Java] [C++] [Python]
  3. ElementVisualizer [Java] [C++] [Python]
  4. LinkVisualizer [Java] [C++] [Python]
  5. Color [Java] [C++] [Python]

CircDLelement - BRIDGES Example

Example Details

Java
C++
Python

  

  

  

Bridges Visualization

Well done! You’ve just created your doubly linked circular doubly linked list!