relations on graphs