Question: Use python language for the following exercise: Learn how to represent a graph in python using a tuple, an adjacency list, and an adjacency matrix.

Use python language for the following exercise:

  1. Learn how to represent a graph in python using a tuple, an adjacency list, and an adjacency matrix.
  2. Learn how to draw a graph interactively on screen using turtle

Exercise: 1

Create an interactive graph display screen.

1.On a key press you should be able to create nodes on the screen and name them

2.On a key press you should be able to select the nodes displayed in the previous step and connect them

3.You may add delete node and delete edge actions as well

4.Select a node/edge this should highlight the node/edge using colors

4.On pressing a save button or key the graph should be written in an excel sheet as .csv format

File1 - NodeList

NodeId(Integer),Node (Integer) , xcoordinate(integer), ycoordinate(integer)

File2-EdgeList

EdgeID(Integer),Node(Integer),Node(Integer)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!