Linked list template for graphviz