added cacheing to edge labels, cannot cache node labels due to different shapes