adopted creating queue graphs ins same way as others