Add function to get node identity, and crappy but semi-generic function to turn properties to alist