Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume you are a detective trying to solve a criminal case. You have at your disposal a lot of resources that contains a lot of

Assume you are a detective trying to solve a criminal case. You have at your disposal a lot of resources that contains a lot of information. On social media, you know that John follows Kate, Shawna, and Jim. Kate follows Jim, Deja, Daryl, Shawna and Ricky. Shawna follows Deja, Daryl, and John. Jim follows John, Kate, Deja and Shawna. Deja follows Kate, Shawna, Jim and Ricky. Daryl follows Kate, Ricky, John, and Shawna. Ricky follows John and Kate.

From this information construct a representation for this information in the form of a Graph.

Investigating phone call history shows that (Note: W stands for the Weight or number of occurrences of the calls)

202-555-0149 calls 202-555-2013 W9, 202-555-3287 W5, 202-555-1216 W6, 202-555-7664 W7, and 202-555-4330 W3. 202-555-1852 calls 202-555-3287 W7, 202-555-0149 W4, 202-555-7664 W12 and 202-555- 1216 W7. 202-555-1216 calls 202-555-1852 W4, 202-555-0149 W3, 202-555-3287 W10 and 202-555- 7664 W8. 202-555-7664 calls 202-555-0149 W4, 202-555-3287 W5, 202-555-1216 W2, 202-555-2013 W3 and 202-555-1852 W10. 202-555-3287 calls 202-555-4330 W5, 202-555-7664 W6, and 202-555-1852 W4. 202-555-2013 calls 202-555-0149 W4 and 202-555-1852 W7. 202-555-4330 calls 202-555-1852 W8, 202-555-2013 W8, 202-555-3287 W4, and 202-555- 0149 W4.

From this information construct a representation for this information in the form of a Graph. Of 3 2 Questions:

1. Represent the two Graphs you have constructed using some structure in a Class in Python Programming.

2. Add a method to the class that will display the degree of each node you give it as a parameter.

3. Add a method to the class that will check whether two nodes are connected or not (Given both nodes as parameters).

4. Through your analysis of the data given, can you determine who owns what telephone number?

5. Do you find anything odd from the data?

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

More Books

Students also viewed these Databases questions

Question

Explain the steps involved in training programmes.

Answered: 1 week ago

Question

What are the need and importance of training ?

Answered: 1 week ago

Question

What is job rotation ?

Answered: 1 week ago

Question

Question Can a Keogh plan fund be reached by the owners creditors?

Answered: 1 week ago

Question

Question What happens to my plan if I die?

Answered: 1 week ago