add snippets of node and edge in tikz