Skip to content

Instantly share code, notes, and snippets.

@jinhangjiang
Created June 24, 2021 09:59
Show Gist options
  • Save jinhangjiang/ef67cede3fc66d32011859e92c3e01de to your computer and use it in GitHub Desktop.
Save jinhangjiang/ef67cede3fc66d32011859e92c3e01de to your computer and use it in GitHub Desktop.
read data using igraph
library(sand)
g.lazega <- graph_from_data_frame(elist.lazega,
directed="FALSE",
vertices=v.attr.lazega)
vertex_attr_names(g.lazega)
# [1] "name" "Seniority" "Status" "Gender" "Office"
# [6] "Years" "Age" "Practice" "School"
plot(g.lazega)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment