Created
February 7, 2021 20:40
-
-
Save HeenaR17/9532337cdb84f1fad6dd4a59bee338fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Create network | |
net <- graph.data.frame(y, directed=T) | |
#Checking number of vertices and edges | |
V(net) | |
E(net) | |
V(net)$label <- V(net)$name | |
V(net)$degree <- degree(net) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment