A weighted arc pointing to a graph node.
public var node:GraphNode
The node that the arc points to.
public var weight:Number
The weight (or cost) of the arc.
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.
|
Thu Jan 16 2014, 01:11 PM +08:00