A doubly linked list of vertices.
Reference to the first vertex of the linked list. Default is null.
Reference to the last vertex of the linked list. Default is null.
Returns the head reference.
Returns the tail reference.
Clears the linked list.
target - The target vertex. It's assumed that this vertex belongs to the linked list.
vertex - The vertex to insert.
Inserts a vertex before a target vertex.
Inserts a vertex after a target vertex.
Appends a vertex to the end of the linked list.
Appends a chain of vertices where the given vertex is the head.
Removes a vertex from the linked list.
Removes a sublist of vertices from the linked list.
Returns true if the linked list is empty.
For more info on how to obtain the source code of this module see this page.