Use the arrays in the basicGraph function to send it to the frontend and display the graph.
Use the arrays in the basicGraph function to send it to the frontend and display the graph.