geodesic_expand_overlap

geodesic_expand_overlap(subgraph, seed_mask, min_overlap, target_overlap, reseed_samples=10)[source]

expand patch

Parameters:
  • subgraph – graph containing patch nodes and all target nodes for potential expansion

  • source_nodes – index of source nodes (initial starting nodes for expansion)

  • min_overlap – minimum overlap before stopping expansion

  • target_overlap – maximum overlap (if expansion step results in more overlap, the nodes added are sampled at random)

Returns:

index tensor of new nodes to add to patch