scalation.database.graph

Members list

Type members

Classlikes

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).

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
Supertypes
trait Serializable
trait Spatial
trait PartiallyOrdered[Spatial]
trait Identifiable
class Object
trait Matchable
class Any
Show all
Known subtypes
class Link
class Transport
object Edge

The Edge companion object provides a factory function for creating edges.

The Edge companion object provides a factory function for creating edges.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Edge.type
class EdgeType(_name: String, val from: VertexType, val schema: Schema, val to: VertexType, val edges: ArrayBuffer[Edge], val color: Color, val shape: CurvilinearShape) extends Identifiable, Serializable

The EdgeType class collects edges of the same type, e.g., knows relationship type. An edge-type is analogous to a relation with foreign keys in an RDBMS.

The EdgeType class collects edges of the same type, e.g., knows relationship type. An edge-type is analogous to a relation with foreign keys in an RDBMS.

Value parameters

_name

the name of this edge-type ('name' from Identifiable)

color

the display color for edges of this type

edges

the set of edges having this edge-type (extension)

from

the source vertex

schema

the property names for this edge-type

shape

the display shape template for edges of this type

to

the target vertex

Attributes

Companion
object
Supertypes
trait Serializable
trait Identifiable
class Object
trait Matchable
class Any
object EdgeType

The EdgeType companion object provides factory functions for creating edge-types.

The EdgeType companion object provides factory functions for creating edge-types.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
EdgeType.type
class PGraph(val name: String, val vt: ArrayBuffer[VertexType], val et: ArrayBuffer[EdgeType], animating: Boolean, aniRatio: Double, width: Int, height: Int) extends Serializable

The PGraph class is used to store property graphs.

The PGraph class is used to store property graphs.

Value parameters

aniRatio

the ratio of simulation speed vs. animation speed

animating

whether to animate the model (defaults to false)

et

the set of edge-types

height

the height of the drawing canvas

name

the name of the property graph

vt

the set of vertex-types

width

the width of the drawing canvas

Attributes

Supertypes
trait Serializable
class Object
trait Matchable
class Any
object SocialNetwork

The SocialNetwork onject provides a sample property-graph database.

The SocialNetwork onject provides a sample property-graph database.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
trait Topological(var elem: Element, var dist: Double) extends PartiallyOrdered[Topological]

The Topological trait provides topological coordinates that are topologically partially ordered.

The Topological trait provides topological coordinates that are topologically partially ordered.

Value parameters

dist

its distance along the segment

elem

the element in the graph (at a vertex or on an edge)

Attributes

Supertypes
trait PartiallyOrdered[Topological]
class Object
trait Matchable
class Any
Known subtypes
class SimAgent
class Customer
class Reporter
class Call
class Car
class Car
class Bus
class Gate
class Source
Show all
class Vertex(_name: String, val prop: Property, _pos: VectorD) extends Identifiable, Spatial, PartiallyOrdered[Vertex], Serializable

The Vertex class maintains properties for a vertex, e.g., a person. A vertex is analogous to a tuple in an RDBMS.

The Vertex class maintains properties for a vertex, e.g., a person. A vertex is analogous to a tuple in an RDBMS.

Value parameters

_name

the name of this vertex ('name' from Identifiable), serves as vertex label

_pos

the position (Euclidean coordinates) of this vertex ('pos' from `Spatial)

prop

maps vertex's property names into property values

Attributes

Companion
object
Supertypes
trait Serializable
trait Spatial
trait PartiallyOrdered[Vertex]
trait Identifiable
class Object
trait Matchable
class Any
Show all
Known subtypes
class Junction
class Resource
class Sink
class WaitQueue
object Vertex

The Vertex companion object provides a factory function for creating vertices.

The Vertex companion object provides a factory function for creating vertices.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Vertex.type
class VertexType(_name: String, val schema: Schema, val verts: ArrayBuffer[Vertex], val color: Color, val shape: Shape) extends Identifiable, Serializable

The VertexType class collects vertices of the same type, e.g., a person vertex-type. A vertex-type is analogous to a relation with no foreign keys in an RDBMS.

The VertexType class collects vertices of the same type, e.g., a person vertex-type. A vertex-type is analogous to a relation with no foreign keys in an RDBMS.

Value parameters

_name

the name of this vertex-type ('name' form Identifiable)

color

the display color for vertices of this type

schema

the property names for this vertex-type

shape

the display shape template for vertices of this type

verts

the set of vertices having this vertex-type (extension)

Attributes

Companion
object
Supertypes
trait Serializable
trait Identifiable
class Object
trait Matchable
class Any
object VertexType

The VertexType companion object provides factory functions for building vertex-types.

The VertexType companion object provides factory functions for building vertex-types.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
VertexType.type
final class edgeTest

Attributes

Supertypes
class Object
trait Matchable
class Any
final class edgeTypeTest

Attributes

Supertypes
class Object
trait Matchable
class Any
final class pGraphTest

Attributes

Supertypes
class Object
trait Matchable
class Any
final class pGraphTest2

Attributes

Supertypes
class Object
trait Matchable
class Any
final class vertexTest

Attributes

Supertypes
class Object
trait Matchable
class Any
final class vertexTypeTest

Attributes

Supertypes
class Object
trait Matchable
class Any

Types

type Element = Vertex | Edge

Value members

Concrete methods

def edgeTest(): Unit

The edgeTest main function is used to test the Edge class.

The edgeTest main function is used to test the Edge class.

runMain scalation.database.graph.edgeTest

Attributes

def edgeTypeTest(): Unit

The edgeTypeTest main function is used to test the EdgeType class.

The edgeTypeTest main function is used to test the EdgeType class.

runMain scalation.database.graph.edgeTypeTest

Attributes

def pGraphTest(): Unit

The pGraphTest main function is used to test the PGraph class, by displaying the graph.

The pGraphTest main function is used to test the PGraph class, by displaying the graph.

runMain scalation.database.graph.pGraphTest

Attributes

def pGraphTest2(): Unit

The pGraphTest2 main function is used to test the PGraph class, by performing several queries.

The pGraphTest2 main function is used to test the PGraph class, by performing several queries.

runMain scalation.database.graph.pGraphTest2

Attributes

def vertexTest(): Unit

The vertexTest main function is used to test the Vertex class.

The vertexTest main function is used to test the Vertex class.

runMain scalation.database.graph.vertexTest

Attributes

def vertexTypeTest(): Unit

The vertexTypeTest main function is used to test the VertexType class.

The vertexTypeTest main function is used to test the VertexType class.

runMain scalation.database.graph.vertexTypeTest

Attributes

Extensions

Extensions

extension (el: Element)
def tokens: ArrayBuffer[Topological]