ott.geometry.graph.Graph.subset#

Graph.subset(src_ixs, tgt_ixs, **kwargs)#

Subset rows or columns of a geometry.

Parameters
  • src_ixs (Optional[Array]) – Row indices. If None, use all rows.

  • tgt_ixs (Optional[Array]) – Column indices. If None, use all columns.

  • kwargs (Any) – Keyword arguments to override the initialization.

Return type

Geometry

Returns

The subsetted geometry.