10.9

Suppose you wish to model the university schema as a graph. For each of the following relations, explain whether the relation would be modeled as a node or as an edge:
(i) student
(ii) instructor
(iii) course
(iv) section
(v) takes
(vi) teaches
Does the model capture connections between sections and courses? ——————————–

Each relation corresponding to an entity (student, instructor, course, section) would be modeled as a node. Takes and teaches would be modeled as edges. There is a further edge between course and section, which has been merged into the section relation and cannot be captured with the above schema. It can be modeled if we create a separate relation that links sections to courses.