I am a researcher studying structural brain networks of stroke patients. I have some connectomes which are given as symmetric weighted matrices, e.g. (as a random example)
julia> X = rand(300,300); C = Symmetric((X + transpose(X)) / 2 - Diagonal(X))
I want to create a MetaGraph in which the edges have the weights in the matrix. In addition, I have a list of anatomical names for the 300 brain regions in the connectome, which I would like to serve as labels for the nodes. I can’t find where the documentation tells us how to do this. Any help would be greatly appreciated.
Thanks so much,