# NOT RUN {
# It is a time consuming function...
# }
# NOT RUN {
allgraphs = get.all.graphs(c("diet1stword", "diet2ndword", "diet3rdword"),
freeassociationdata)
centralities_vector1 = create.centrality.variable("centrality_betweenness",
freeassociationdata$exercise1stword, allgraphs$wordreport)
centralities_vector2 = create.centrality.variable("centrality_alpha",
freeassociationdata$exercise1stword, allgraphs$wordreport)
centralities_vector3 = create.centrality.variable("centrality_authority",
freeassociationdata$exercise1stword, allgraphs$wordreport)
centralities_vector4 = create.centrality.variable("centrality_closeness",
freeassociationdata$exercise1stword, allgraphs$wordreport)
centralities_vector5 = create.centrality.variable("centrality_pagerank",
freeassociationdata$exercise1stword, allgraphs$wordreport)
centralities_vector6 = create.centrality.variable("centrality_eigen",
freeassociationdata$exercise1stword, allgraphs$wordreport)
# }
Run the code above in your browser using DataLab