Packagecom.asterisq.graph
Classpublic class LinkedEdge
InheritanceLinkedEdge Inheritance Edge Inheritance GraphItem Inheritance flash.events.EventDispatcher
ImplementsIEdge

An edge in a linked graph.



Public Properties
 PropertyDefined by
 Inheriteddata : Object
GraphItem
  headNode : INode
[read-only] Fetches the head node.
LinkedEdge
  headNodeID : String
[read-only] Fetches the ID of the head node.
LinkedEdge
 Inheritedid : String
GraphItem
  nodes : Array
[read-only] Fetches an ordered list of node IDs in this edge.
LinkedEdge
  tailNode : INode
[read-only] Fetches the tail node.
LinkedEdge
  tailNodeID : String
[read-only] Fetches the ID of the tail node.
LinkedEdge
Public Methods
 MethodDefined by
  
LinkedEdge(id:String, tailNode:LinkedNode, headNode:LinkedNode, data:Object = null)
Creates a new linked node.
LinkedEdge
 Inherited
getDataProperty(propertyName:String):*
Fetches the value of a particular property of this graph item's data.
GraphItem
 Inherited
getNodeIDs():Array
Fetches an ordered list of node IDs in this edge.
Edge
  
Fetches the other node in this edge, given one of them.
LinkedEdge
 Inherited
getOtherNodeID(nodeID:String):String
Fetches the ID of the other node in this edge, given one of their IDs.
Edge
 Inherited
setDataProperty(propertyName:String, value:*):void
Sets the value of a particular property of this graph item's data.
GraphItem
  
Converts this LinkedEdge instance to an Edge.
LinkedEdge
  
toString():String
LinkedEdge
Property detail
headNodeproperty
headNode:INode  [read-only]

Fetches the head node.

Implementation
    public function get headNode():INode
headNodeIDproperty 
headNodeID:String  [read-only]

Fetches the ID of the head node.

Implementation
    public function get headNodeID():String
nodesproperty 
nodes:Array  [read-only]

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

Implementation
    public function get nodes():Array
tailNodeproperty 
tailNode:INode  [read-only]

Fetches the tail node.

Implementation
    public function get tailNode():INode
tailNodeIDproperty 
tailNodeID:String  [read-only]

Fetches the ID of the tail node.

Implementation
    public function get tailNodeID():String
Constructor detail
LinkedEdge()constructor
public function LinkedEdge(id:String, tailNode:LinkedNode, headNode:LinkedNode, data:Object = null)

Creates a new linked node.

Parameters
id:String
 
tailNode:LinkedNode
 
headNode:LinkedNode
 
data:Object (default = null)
Method detail
getOtherNode()method
public function getOtherNode(node:INode):INode

Fetches the other node in this edge, given one of them.

Parameters
node:INode

Returns
INode
toEdge()method 
public function toEdge():Edge

Converts this LinkedEdge instance to an Edge.

Returns
Edge
toString()method 
public override function toString():String

Returns
String