ConnectivityASP

com.phasmidsoftware.gryphon.adjunct.ConnectivityASP
See theConnectivityASP companion class

Companion object for ConnectivityASP.

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, Option[V])]): ConnectivityASP[V]

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 V and an optional parent of type Option[V].

Attributes

Returns

a ConnectivityASP[V] instance initialized with the specified entries.

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

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 V to be added as root nodes.

Attributes

Returns

a ConnectivityASP[V] instance initialized with the specified values, where each value is mapped to None as its parent.

def empty[V]: ConnectivityASP[V]

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.