Packagecom.asterisq.graph
Classpublic class Edge
InheritanceEdge Inheritance GraphItem Inheritance flash.events.EventDispatcher
ImplementsIEdge
SubclassesLinkedEdge

A directed edge in a graph.



Public Properties
 PropertyDefined by
 Inheriteddata : Object
GraphItem
  headNodeID : String
[read-only] The ID of the head node.
Edge
 Inheritedid : String
GraphItem
  tailNodeID : String
[read-only] The ID of the tail node.
Edge
Public Methods
 MethodDefined by
  
Edge(id:String, tailNodeID:String, headNodeID:String, data:Object = null)
Creates a new edge.
Edge
 Inherited
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
 Inherited
setDataProperty(propertyName:String, value:*):void
Sets the value of a particular property of this graph item's data.
GraphItem
  
toString():String
Edge
Property detail
headNodeIDproperty
headNodeID:String  [read-only]

The ID of the head node.

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

The ID of the tail node.

Implementation
    public function get tailNodeID():String
Constructor detail
Edge()constructor
public function Edge(id:String, tailNodeID:String, headNodeID:String, data:Object = null)

Creates a new edge.

Parameters
id:String
 
tailNodeID:String
 
headNodeID:String
 
data:Object (default = null)
Method detail
getNodeIDs()method
public function getNodeIDs():Array

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.

Returns
Array
getOtherNodeID()method 
public function getOtherNodeID(nodeID:String):String

Fetches the ID of the other node in this edge, given one of their IDs.

Parameters
nodeID:String

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

Returns
String