Identify proportional relationships from graphs