| Package | com.asterisq.graph |
| Class | public class Edge |
| Inheritance | Edge GraphItem flash.events.EventDispatcher |
| Implements | IEdge |
| Subclasses | LinkedEdge |
| Property | Defined by | ||
|---|---|---|---|
![]() | data : Object | GraphItem | |
| headNodeID : String [read-only]
The ID of the head node.
| Edge | ||
![]() | id : String | GraphItem | |
| tailNodeID : String [read-only]
The ID of the tail node.
| Edge | ||
| Method | Defined by | ||
|---|---|---|---|
|
Edge(id:String, tailNodeID:String, headNodeID:String, data:Object = null)
Creates a new edge.
| Edge | ||
![]() |
getDataProperty(propertyName:String):*
Fetches the value of a particular property of this graph item's data.
| GraphItem | |
|
getNodeIDs():Array
Fetches an ordered list of node IDs in this edge.
| Edge | ||
|
getOtherNodeID(nodeID:String):String
Fetches the ID of the other node in this edge, given one of their IDs.
| Edge | ||
![]() |
setDataProperty(propertyName:String, value:*):void
Sets the value of a particular property of this graph item's data.
| GraphItem | |
|
toString():String
| Edge | ||
| headNodeID | property |
headNodeID:String [read-only]The ID of the head node.
Implementation public function get headNodeID():String
| tailNodeID | property |
tailNodeID:String [read-only]The ID of the tail node.
Implementation public function get tailNodeID():String
| Edge | () | constructor |
public function Edge(id:String, tailNodeID:String, headNodeID:String, data:Object = null)Creates a new edge.
Parametersid:String |
|
tailNodeID:String |
|
headNodeID:String |
|
data:Object (default = null) |
| getNodeIDs | () | method |
public function getNodeIDs():ArrayFetches an ordered list of node IDs in this edge. The first element is the tail node ID and the second element is the head node ID.
ReturnsArray |
| getOtherNodeID | () | method |
public function getOtherNodeID(nodeID:String):StringFetches the ID of the other node in this edge, given one of their IDs.
ParametersnodeID:String |
String |
| toString | () | method |
public override function toString():StringReturns
String |