Edge

scalation.database.graph.Edge
See theEdge companion object
class Edge(_name: String, val from: Vertex, val prop: Property, val to: Vertex, val shift: Int) extends Identifiable, Spatial, Serializable

The Edge class maintains the edge's connections between vertices as well as its own properites. An edge is roughly analogous to implicit relationship manifest via foreign key-primary key pairs. The parameters may be thought of like a triple, e.g., (h, r, t) or (s, p, o).

Value parameters

_name

the name of this edge ('name' from Identifiable), edge label

from

this edge's source/from vertex

prop

maps edge's property names into property values

shift

number of units to shift to accomodate a bundle of egdes in a composite edge

to

this edge's target/to vertex

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Spatial
trait PartiallyOrdered[Spatial]
trait Identifiable
class Object
trait Matchable
class Any
Show all
Known subtypes
class Link
class Transport

Members list

Type members

Inherited types

type AsPartiallyOrdered = Function1

Attributes

Inherited from:
PartiallyOrdered

Value members

Concrete methods

override def toString: String

Convert this edge object to a string.

Convert this edge object to a string.

Attributes

Definition Classes
Spatial -> Any

Inherited methods

def <[B >: Spatial : AsPartiallyOrdered](that: B): Boolean

Attributes

Inherited from:
PartiallyOrdered
def <=[B >: Spatial : AsPartiallyOrdered](that: B): Boolean

Attributes

Inherited from:
PartiallyOrdered
def >[B >: Spatial : AsPartiallyOrdered](that: B): Boolean

Attributes

Inherited from:
PartiallyOrdered
def >=[B >: Spatial : AsPartiallyOrdered](that: B): Boolean

Attributes

Inherited from:
PartiallyOrdered
override def equals(that: Any): Boolean

Determine whether Identifiable object 'this' equals Identifiable object 'that'. Works since 'id' is unique for all Identifiable objects.

Determine whether Identifiable object 'this' equals Identifiable object 'that'. Works since 'id' is unique for all Identifiable objects.

Attributes

Definition Classes
Identifiable -> Any
Inherited from:
Identifiable
override def hashCode: Int

Return the hashCode as the unique id.

Return the hashCode as the unique id.

Attributes

Definition Classes
Identifiable -> Any
Inherited from:
Identifiable
def me: String

Return the full identity.

Return the full identity.

Attributes

Inherited from:
Identifiable
def s_rescale(factor: Double): VectorD

Rescale from actual-position (e.g., world-coordinates) to animation-position (screen-coordinates).

Rescale from actual-position (e.g., world-coordinates) to animation-position (screen-coordinates).

Value parameters

factor

the space rescaling factor

Attributes

Inherited from:
Spatial
def tryCompareTo[B >: Spatial : AsPartiallyOrdered](other: B): Option[Int]

Compare two spatial objects based on their space coordinates.

Compare two spatial objects based on their space coordinates.

Value parameters

other

the other item to compare with this item

Attributes

Inherited from:
Spatial
def typeName: String

Get the type of the object.

Get the type of the object.

Attributes

Inherited from:
Identifiable

Concrete fields

val from: Vertex
val prop: Property
val shift: Int
val to: Vertex
val tokens: Set[Topological]

Inherited fields

val id: Int

Attributes

Inherited from:
Identifiable
val name: String

Attributes

Inherited from:
Identifiable
val pos: VectorD

Attributes

Inherited from:
Spatial