adding functionality for multiple mertics in a graph