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

Method __eq__

raphtory/src/python/graph/node.rs:121–123  ·  view source on GitHub ↗

checks if a node is equal to another by their id (ids are unique) Arguments: other: The other node to compare to. Returns: True if the nodes are equal, false otherwise.:

(&self, other: Bound<PyNode>)

Source from the content-addressed store, hash-verified

119 /// Returns:
120 /// True if the nodes are equal, false otherwise.:
121 fn __eq__(&self, other: Bound<PyNode>) -> bool {
122 self.node.id() == other.get().node.id()
123 }
124
125 fn __ne__(&self, other: Bound<PyNode>) -> bool {
126 self.node.id() != other.get().node.id()

Callers

nothing calls this directly

Calls 7

idMethod · 0.45
getMethod · 0.45
lenMethod · 0.45
eqMethod · 0.45
iterMethod · 0.45
allMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected