Parse course requirement text and create an edge dataset and vertex dataset. The vertex dataset contains all the information we know about each course (name, number). The edge dataset will contain all edges between nodes. The source node will be the prerequisite class and the target will be the course of interest. For now we won't worry about OR conditions, and treat all pre-requisites the same.
Parse course requirement text and create an edge dataset and vertex dataset. The vertex dataset contains all the information we know about each course (name, number). The edge dataset will contain all edges between nodes. The source node will be the prerequisite class and the target will be the course of interest. For now we won't worry about OR conditions, and treat all pre-requisites the same.
Example
CS160 -> CS161
Example:
will become something like this:
An example data structure (JSON edge and vertex arrays) used for inputting graphical networks to D3 is available here, in the file data.json:
https://observablehq.com/@d3/force-directed-graph