Fix pretty printing for edge endpoints