Added functions for finding nodes with min, max average path length and a function to get the label for a specific node