Utility functions for assigning scores to graph elements. These include: