- // Create the initial graph by defining dependencies between operations
- comm0->add_successor(exec2);
- exec1->add_successor(comm1);
- exec2->add_successor(comm2);
+ // Create operations
+ auto comm0 = simgrid::plugins::CommOp::create("comm0", 1e7, tremblay, jupiter);
+ auto exec1 = simgrid::plugins::ExecOp::create("exec1", 1e9, jupiter);
+ auto exec2 = simgrid::plugins::ExecOp::create("exec2", 1e9, fafard);
+ auto comm1 = simgrid::plugins::CommOp::create("comm1", 1e7, jupiter, tremblay);
+ auto comm2 = simgrid::plugins::CommOp::create("comm2", 1e7, fafard, tremblay);