Updated example for tree and graph formatting