MCPcopy Create free account
hub / github.com/Pometry/Raphtory / __bool__

Method __bool__

raphtory/src/python/algorithm/max_weight_matching.rs:42–44  ·  view source on GitHub ↗

Returns True if the matching is not empty

(&self)

Source from the content-addressed store, hash-verified

40
41 /// Returns True if the matching is not empty
42 fn __bool__(&self) -> bool {
43 !self.inner.is_empty()
44 }
45
46 fn __iter__(&self) -> PyBorrowingIterator {
47 py_borrowing_iter!(self.inner.clone(), Matching<DynamicGraph>, |inner| inner

Callers

nothing calls this directly

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected