src/main/java/seedu/address/manager/EdgeManager.java
public static void unassignAssignmentFromCourse(ID assignmentID, ID courseID) throws CommandException {
        Course foundCourse = (Course) model.get(courseID, Constants.ENTITY_TYPE.COURSE);
        Assignment foundAssignment = (Assignment) model.get(assignmentID, Constants.ENTITY_TYPE.ASSIGNMENT);

        foundCourse.removeAssignment(assignmentID);
        foundAssignment.removeCourseID(courseID);

        model.set(foundCourse, foundCourse);
        model.set(foundAssignment, foundAssignment);
    }
// ========================== For Unassigning of X FROM Y =========================
For Unassigning of X FROM Y
For Unassigning of X FROM Y
public static void unassignAssignmentFromCourse(ID assignmentID, ID courseID) throws CommandException {
        Course foundCourse = (Course) model.get(courseID, Constants.ENTITY_TYPE.COURSE);
        Assignment foundAssignment = (Assignment) model.get(assignmentID, Constants.ENTITY_TYPE.ASSIGNMENT);
        foundCourse.removeAssignment(assignmentID);
        foundAssignment.removeCourseID(courseID);
        model.set(foundCourse, foundCourse);
        model.set(foundAssignment, foundAssignment);
    }
public static void unassignAssignmentFromCourse ( ID assignmentID , ID courseID ) throws CommandException { Course foundCourse = ( Course ) model . get ( courseID , Constants . ENTITY_TYPE . COURSE ) ; Assignment foundAssignment = ( Assignment ) model . get ( assignmentID , Constants . ENTITY_TYPE . ASSIGNMENT ) ; foundCourse . removeAssignment ( assignmentID ) ; foundAssignment . removeCourseID ( courseID ) ; model . set ( foundCourse , foundCourse ) ; model . set ( foundAssignment , foundAssignment ) ; }
For Unassigning of X FROM Y
For Unassigning of X FROM Y