parameters: (graph, src, dst)
docstring: Callback called before merging two nodes of a solidity graph.
docstring_summary: Callback called before merging two nodes of a solidity graph.
docstring_tokens: Callback called before merging two nodes of a solidity graph .
function: def _solidity_merge_func(graph, src, dst):
      """Callback called before merging two nodes of a solidity graph."""
      new_mask = np.logical_or(graph.node[src]['mask'], graph.node[dst]['mask'])
      graph.node[dst]['mask'] = new_mask
      graph.node[dst]['solidity'] = \
          1. * np.sum(new_mask) / np.sum(convex_hull_image(new_mask))
function_tokens: def _solidity_merge_func ( graph , src , dst ) : new_mask = np . logical_or ( graph . node [ src ] [ 'mask' ] , graph . node [ dst ] [ 'mask' ] ) graph . node [ dst ] [ 'mask' ] = new_mask graph . node [ dst ] [ 'solidity' ] = 1. * np . sum ( new_mask ) / np . sum ( convex_hull_image ( new_mask ) )