Utility class to create graph of tasks (Runnable)