get_block_edge_gradient#
- graph_tool.inference.get_block_edge_gradient(g, be, cmap=None)[git][source]#
Get edge gradients corresponding to the block membership at the endpoints of the edges given by the
beedge 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:None) Color map used to construct the gradient. If not provided,
graph_tool.draw.default_cmwill be used.
- g
- Returns:
- cp
EdgePropertyMap A vector-valued edge property map containing a color gradient.
- cp
See also
OverlapBlockStateOverlapping stochastic block model
graph_tool.draw.graph_drawDraw a graph with Cairo