Skip to content

Instantly share code, notes, and snippets.

@HeenaR17
Created February 7, 2021 20:40
Show Gist options
  • Save HeenaR17/9532337cdb84f1fad6dd4a59bee338fc to your computer and use it in GitHub Desktop.
Save HeenaR17/9532337cdb84f1fad6dd4a59bee338fc to your computer and use it in GitHub Desktop.
#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