Quantitative relationships in a graph