Companion object for ConnectivityLazy.
Attributes
- Companion
- class
- Graph
-
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ConnectivityLazy.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
Constructs a new ConnectivityLazy instance from a sequence of value-to-ParentSize pairs. Each pair associates a value with its corresponding parent and size information.
Constructs a new ConnectivityLazy instance from a sequence of value-to-ParentSize pairs. Each pair associates a value with its corresponding parent and size information.
Value parameters
- entries
-
a sequence of pairs where each pair consists of a value and a
ParentSizeobject that defines the parent reference and the size of the component tree.
Attributes
- Returns
-
a new
ConnectivityLazyinstance initialized with the provided entries.
Creates a new ConnectivityLazy instance from the given elements. Each provided element will represent a separate component initially, using "Weighted Quick Union" for management.
Creates a new ConnectivityLazy instance from the given elements. Each provided element will represent a separate component initially, using "Weighted Quick Union" for management.
Value parameters
- vs
-
the elements to initialize as individual components in the
ConnectivityLazyinstance.
Attributes
- Returns
-
a new
ConnectivityLazyinstance containing the given elements as disjoint sets.
Creates an empty ConnectivityLazy instance with no elements.
Creates an empty ConnectivityLazy instance with no elements.
Attributes
- Returns
-
an empty
ConnectivityLazyinstance.