Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions