Added .clear() function to graphical primitives
Improved the edge layout to better work with rounded rectangle nodes