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 element2 will return element3. Calling getPrev() on element2 will return element1. element3 points to Lelement1, and element1 points to element3.

Notice that, since the BRIDGES object, CircDLelement<E> has a getPrev() method, so we 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!