Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Create a new Java class in a file named sixDegrees.java and define a main method with the appropriate signature. a. Create an empty,
1. Create a new Java class in a file named "sixDegrees.java" and define a main method with the appropriate signature. a. Create an empty, unweighted graph of strings. b. Populate your graph with data from IMDB. Open a browser and navigate to https://www.imdb.com. Repeat the following for at least 4 films or television shows (hereafter referred to as "films"): i. Search for the film on IMDB. ii. Add the name of the film to your graph. iii. Add the names of at least 3 cast and crew members from the film to your graph and establish an undirected connection to the film. iv. Choose one of the cast or crew members that you added to the graph, and navigate to their page on IMDB. Choose another one of their film or television projects. Be sure to connect them to the new project! To be clear, each time you add a new film or television project to your graph it should have at least one cast or crew member in common with a previously added project. c. Run at least 4 BFS paths using two cast and crew members from your graph to see through which projects they are connected and print the results to standard output. For example, the following may be the result of searching for a path from "Carrie Fisher" to "Sean Connery": ["Carrie Fisher", "Star Wars", "Harrison Ford", "Indiana Jones and the Last Crusade", "Sean Connery"]
Step by Step Solution
★★★★★
3.48 Rating (148 Votes )
There are 3 Steps involved in it
Step: 1
Here is an example of how the main method of the sixDegreesjava class could be implemented import ja...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started