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
- Graph
-
- Supertypes
-
trait Serializabletrait Spatialtrait PartiallyOrdered[Vertex]trait Identifiableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Members list
Type members
Inherited types
Attributes
- Inherited from:
- PartiallyOrdered
Value members
Concrete methods
Return the center coordinates for this vertex.
Return the center coordinates for this vertex.
Attributes
SHOW/print this table, one tuple per row. Formatting: regular column is 'width_' chars wide, 'X' is double that FIX - currently only works for width_, not width & @param width_ the standard column width
SHOW/print this table, one tuple per row. Formatting: regular column is 'width_' chars wide, 'X' is double that FIX - currently only works for width_, not width & @param width_ the standard column width
Attributes
Convert this vertex object to a string.
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
- Definition Classes
-
Spatial -> PartiallyOrdered
Inherited methods
Attributes
- Inherited from:
- PartiallyOrdered
Attributes
- Inherited from:
- PartiallyOrdered
Attributes
- Inherited from:
- PartiallyOrdered
Attributes
- Inherited from:
- PartiallyOrdered
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
Return the hashCode as the unique id.
Return the hashCode as the unique id.
Attributes
- Definition Classes
-
Identifiable -> Any
- Inherited from:
- Identifiable
Return the full identity.
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
Get the type of the object.