...
/Graph Data Creation and Rendering
Graph Data Creation and Rendering
Implement the functionality to create the graph data for the problem statement and render it on the HTML web page.
We'll cover the following...
Introduction
Now let's start implementing our travel planner project. We'll follow the steps mentioned below to build the project:
Create the data for the project. This data is just the graph with cities as nodes, the route to travel from one city to another as edges, and the time taken to travel from one city to another as weights. There will be two types of routes from one city to another, namely the route taken when going by bus and the route taken when flying. We will add some randomness to our graphs so that the structure of the graphs differs for each run.
We will create the UI and partition it into two vertical sections. On the left side, we will display the graph ...