Color graph edges

Description

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).

Usage

1
color.edges(g, memb)

Arguments

g

The graph to get its edges colored

memb

An integer vector indicating vertex group membership

Value

A character vector of colors for each edge in the graph

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.