EGI.vertices_where
- EGI.vertices_where(conditions, data=False)
Get vertices for which a certain condition or set of conditions is true.
- Parameters
conditions (dict) – 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 vertex attributes in addition to the vertex identifiers.
- Yields
int | tuple[int, dict[str, Any]] – If data is False, the next vertex that matches the condition. If data is True, the next vertex and its attributes.