Packagede.polygonal.ds
Classpublic class GraphArc
InheritanceGraphArc Inheritance Object

A weighted arc pointing to a graph node.



Public Properties
 PropertyDefined By
  node : GraphNode
The node that the arc points to.
GraphArc
  weight : Number
The weight (or cost) of the arc.
GraphArc
Public Methods
 MethodDefined By
  
GraphArc(node:GraphNode, weight:Number = 1)
Creates a new graph arc with a given weight.
GraphArc
Property Detail
nodeproperty
public var node:GraphNode

The node that the arc points to.

weightproperty 
public var weight:Number

The weight (or cost) of the arc.

Constructor Detail
GraphArc()Constructor
public function GraphArc(node:GraphNode, weight:Number = 1)

Creates a new graph arc with a given weight.

Parameters
node:GraphNode — The graph node.
 
weight:Number (default = 1) — The node's weight.