Graph weight