{ } Raw JSON

bundles / scipy 1.18.0 / scipy / _lib / _disjoint_set / DisjointSet / add

function

scipy._lib._disjoint_set:DisjointSet.add

source: /scipy/_lib/_disjoint_set.py:144

Signature

def add(self, x)

Summary

Add element x to disjoint set.

Parameters

x : hashable object

Element to add to the disjoint set.

Aliases

  • scipy.cluster.hierarchy.DisjointSet.add