Skip to content

mnemosine.node.Node.__hash__ ​

Kind: method

Signature ​

python
Node.__hash__(self)

Documentation ​

Hash nodes by their id so they work in sets and dict keys.

Returns:

  • int: hash(self.id).

Example:

python
>>> {doc}  # doctest: +SKIP
{<Node ...>}

Released under the MIT License.