color.edges: Color graph edges

Description Usage Arguments Value


This function takes the community membership of a given graph, and assigns to the edges a specific color (the same as the vertex membership colors). Edges that connect vertices of two different groups are colored gray. Also works for the major lobes of the brain, plus insula, subcortical gray matter, cingulate, limbic lobe (if included in the specific brain atlas).


color.edges(g, memb)



The graph to get its edges colored


An integer vector indicating vertex group membership


A character vector of colors for each edge in the graph

Search within the brainGraph package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.