Companion object for ConnectivityASP.
Attributes
- Companion
- class
- Graph
-
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ConnectivityASP.type
Members list
Type members
Inherited and Abstract types
The names of the product elements.
The names of the product elements.
Attributes
- Inherited from:
- Mirror
The name of the type.
The name of the type.
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Creates a new instance of ConnectivityASP from the given sequence of entries. Each entry in the sequence consists of a value of type V and an optional parent, where None indicates that the value is a root, and Some(parent) specifies the direct parent of the value.
Creates a new instance of ConnectivityASP from the given sequence of entries. Each entry in the sequence consists of a value of type V and an optional parent, where None indicates that the value is a root, and Some(parent) specifies the direct parent of the value.
Value parameters
- entries
-
a sequence of pairs, where each pair contains a value of type
Vand an optional parent of typeOption[V].
Attributes
- Returns
-
a
ConnectivityASP[V]instance initialized with the specified entries.
Creates a new instance of ConnectivityASP using the provided sequence of values. Each value becomes a root node in the disjoint-set, with no parent initially assigned.
Creates a new instance of ConnectivityASP using the provided sequence of values. Each value becomes a root node in the disjoint-set, with no parent initially assigned.
Value parameters
- vs
-
a variable-length sequence of values of type
Vto be added as root nodes.
Attributes
- Returns
-
a
ConnectivityASP[V]instance initialized with the specified values, where each value is mapped toNoneas its parent.
Provides an empty instance of ConnectivityASP with no elements.
Provides an empty instance of ConnectivityASP with no elements.
Attributes
- Returns
-
a
ConnectivityASP[V]instance that is empty, containing no entries.