Hi Chris,
I got the following error message while using the robustness function.
Error in order(vertex_attr(g, measure), decreasing = TRUE) :
argument 1 is not a vector
Basically, I am trying to explore the association between network robustness/resilience and a clinical presentation in a patient group. I use CONN toolbox for imaging data processing and got connectivity matrixes for each individual patient. Then I use graph_from_edgelist from the igraph package to create individual graphs (after thresholding). However, when I use the robustness function in your BrainGraph package, I would get the abovementioned error message. I wonder if you could help me to solve this problem. I have pasted my code below as well as attached one graph from my participants here as Rdata file.
robustness(Subj1, type = c("vertex"), measure = c("btwn.cent"), N = 1000)
Please let me know if you need additional information. Thanks in advance.
Best,
James