Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[Python and Sage Question] All computations should use the SageMath 9.0 kernel. However, you are free to mix Python and Sage functionality in your code.

[Python and Sage Question]

All computations should use the SageMath 9.0 kernel. However, you are free to mix Python and Sage functionality in your code.

image text in transcribed

Problem 4: Network data from a CSV file Grading criteria: code correctness. This problem is based on a dataset derived from a workshop in 1992. Source: UCINET via this page. a. Use pandas to read the CSV file "Camp 92.txt" into a DataFrame. In [ ]: b. The rows and columns of this DataFrame are indexed by the names of participants in the workshop. Now create a complete undirected graph with vertices labeled by the names of the participants in the 38 workshop, in which each edge is labeled by the sum of the two entries in the DataFrame corresponding to this pair of participants. (For example, row HOLLEY meets column BRAZEY in an entry 2, while row BRAZEY meets column HOLLEY in an entry 1; thus the edge from HOLLEY to BRAZEY should be labeled 3.) In [ ]: C. Let G be the graph you constructed in b. For each nonnegative integer n, let Gn be the subgraph of G consisting of all edges whose label is at least n. Find the largest value of n for which Gn is connected. In [ ]: Problem 4: Network data from a CSV file Grading criteria: code correctness. This problem is based on a dataset derived from a workshop in 1992. Source: UCINET via this page. a. Use pandas to read the CSV file "Camp 92.txt" into a DataFrame. In [ ]: b. The rows and columns of this DataFrame are indexed by the names of participants in the workshop. Now create a complete undirected graph with vertices labeled by the names of the participants in the 38 workshop, in which each edge is labeled by the sum of the two entries in the DataFrame corresponding to this pair of participants. (For example, row HOLLEY meets column BRAZEY in an entry 2, while row BRAZEY meets column HOLLEY in an entry 1; thus the edge from HOLLEY to BRAZEY should be labeled 3.) In [ ]: C. Let G be the graph you constructed in b. For each nonnegative integer n, let Gn be the subgraph of G consisting of all edges whose label is at least n. Find the largest value of n for which Gn is connected. In [ ]

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 Systems For Advanced Applications 18th International Conference Dasfaa 2013 Wuhan China April 22 25 2013 Proceedings Part 2 Lncs 7826

Authors: Weiyi Meng ,Ling Feng ,Stephane Bressan ,Werner Winiwarter ,Wei Song

2013th Edition

3642374492, 978-3642374494

Students also viewed these Databases questions

Question

Write a Python program to check an input number is prime or not.

Answered: 1 week ago

Question

Write a program to check an input year is leap or not.

Answered: 1 week ago