Question: Write a java code for a graph that using below information. Dataset for assignment: https://www.dropbox.com/s/pg0cnzwdxcxws18/IMDBDataset.csv?dl=0 (Links to an external site.)Links to an external site. This

Write a java code for a graph that using below information.

Dataset for assignment: https://www.dropbox.com/s/pg0cnzwdxcxws18/IMDBDataset.csv?dl=0 (Links to an external site.)Links to an external site.

This data has been obtained from Data.World. You can view the full dataset at: https://data.world/promptcloud/imdb-data-from-2006-to-2016 (Links to an external site.)Links to an external site.

Create a graph where actors/actresses are nodes. If two actors have co-acted in a movie together, add an edge between the two actors with weight of 1. If they have not co-acted in any movie in the dataset, there is no edge between them. Increase the weight of the edge for every movie they are in together. For example, if two actors are in 10 movies together, the weight of the edge between them is 10.

Once the graph is built, answer the following questions:

1. What is the shortest path between Bradley Cooper and Vincent Cassel? Report the actors on that path, edge weights along the path, and the total cost of the edges.

2. What is the weight of the edge between Rooney Mara and Scarlet Johansson?

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!