graph and scheduling