get_block_edge_gradient#
- graph_tool.inference.get_block_edge_gradient(g, be, cmap=None)[source]#
Get edge gradients corresponding to the block membership at the endpoints of the edges given by the
be
edge property map.- Parameters:
- g
Graph
The graph.
- be
EdgePropertyMap
Vector-valued edge property map with the block membership at each endpoint.
- cmap
matplotlib.colors.Colormap
(optional, default:default_cm
) Color map used to construct the gradient.
- g
- Returns:
- cp
EdgePropertyMap
A vector-valued edge property map containing a color gradient.
- cp