delegated rendering of nodes and edges to the respective classes