Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The zachary.gml in the Dataset folder (in Canvas) is a social network with 34 vertices and 78 edges. Use R to implement the following tasks

The zachary.gml in the Dataset folder (in Canvas) is a social network with 34 vertices and 78 edges. Use R to implement the following tasks (you can also use other programming language): Zachary network: http://konect.uni-koblenz.de/networks/ucidata- zachary. Please submit the R code and the results as an R Notebook.

Read the zachary.gml and plot the network (showing all vertices and edges).

Change the color of the vertices, such that all nodes connected to node 1 (the node with ID 1), including node 1, are colored as red, all nodes connected to node 34 (the node with ID 34) , including node 34, are colored as yellow. Nodes connecting to both 1 and 34 are colored in half red and half yellow (as a pie chart). All other nodes are colored as green. [0.5 pt]

Resize each vertex, such that the node size is linearly proportional to its degree

Change the edge label, such that each edge is labeled using its incident vertices. For example, an edge connecting to node 1 and 3 would be labeled as 1-3

This is the datasets link: http://kateto.net/2016/05/network-datasets/

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

MongoDB Applied Design Patterns Practical Use Cases With The Leading NoSQL Database

Authors: Rick Copeland

1st Edition

1449340040, 978-1449340049

More Books

Students also viewed these Databases questions

Question

What are the three fundamental concepts of cloud computing?

Answered: 1 week ago