Ordering of graphcs