graphlow.core.MeshTopology.median_cells#

MeshTopology.median_cells(x_cell: T, n_hop: int = 1) T#

Compute median among n-hop cell neighbors.

Parameters:
x_cellbackend tensor of shape (n_cells, ...).
n_hopint

The number of adjacent hops to consider.

Returns:
T

Tensor of shape (n_cells, ...).