get_block_edge_gradient

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:
gGraph

The graph.

beEdgePropertyMap

Vector-valued edge property map with the block membership at each endpoint.

cmapmatplotlib.colors.Colormap (optional, default: default_cm)

Color map used to construct the gradient.

Returns:
cpEdgePropertyMap

A vector-valued edge property map containing a color gradient.