ConnectivityLazy

com.phasmidsoftware.gryphon.adjunct.ConnectivityLazy
See theConnectivityLazy companion class

Companion object for ConnectivityLazy.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply[V](entries: Seq[(V, ParentSize[V])]): ConnectivityLazy[V]

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 ParentSize object that defines the parent reference and the size of the component tree.

Attributes

Returns

a new ConnectivityLazy instance initialized with the provided entries.

def create[V](vs: V*): ConnectivityLazy[V]

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 ConnectivityLazy instance.

Attributes

Returns

a new ConnectivityLazy instance containing the given elements as disjoint sets.

def empty[V]: ConnectivityLazy[V]

Creates an empty ConnectivityLazy instance with no elements.

Creates an empty ConnectivityLazy instance with no elements.

Attributes

Returns

an empty ConnectivityLazy instance.