Connected

com.phasmidsoftware.gryphon.core.Connected
trait Connected[V]

Trait to model the capability of answering connectivity queries over a set of objects.

A type implementing Connected[V] can determine whether any two objects of type V belong to the same connected component.

Note the distinction from Connexion[V], which models a specific edge between exactly two vertices. Connected[V] is a higher-level oracle over the whole structure.

Typical implementations: ConnectivityLazy, WeightedUnionFind, ConnectedComponents.

Type parameters

V

the underlying object type.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class AbstractDisjointSet[V, W, This]
class ConnectivityASP[V]
class ConnectivityLazy[V]
trait Connectivity[V]
Show all

Members list

Value members

Abstract methods

def isConnected(v1: V, v2: V): Boolean

Determines whether v1 and v2 belong to the same connected component.

Determines whether v1 and v2 belong to the same connected component.

Value parameters

v1

an object.

v2

another object.

Attributes

Returns

true if v1 and v2 are in the same component.