Change format to hold node and edge objects.