Ordering graphs