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

Method __bool__

raphtory/src/python/graph/node.rs:492–494  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

490 }
491
492 fn __bool__(&self) -> bool {
493 !self.nodes.is_empty()
494 }
495
496 fn __iter__(&self) -> PyGenericIterator {
497 self.nodes.iter_owned().into()

Callers

nothing calls this directly

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected