Adding Graph Representation and Activity Selection problem