MeshDos.edges_where

MeshDos.edges_where(conditions=None, data=False, **kwargs)[source]

Get edges for which a certain condition or set of conditions is true.

Parameters
  • conditions (dict, optional) – A set of conditions in the form of key-value pairs. The keys should be attribute names. The values can be attribute values or ranges of attribute values in the form of min/max pairs.

  • data (bool, optional) – If True, yield the edge attributes in addition to the edge identifiers.

  • **kwargs (dict[str, Any], optional) – Additional conditions provided as named function arguments.

Yields

tuple[int, int] | tuple[tuple[int, int], dict[str, Any]] – If data is False, the next edge as a (u, v) tuple. If data is True, the next edge as a (u, v, data) tuple.