Add printing nodes and edges