GODPAPER | All Packages | All Classes | Index | Frames No Frames |
GraphArc

Package | de.polygonal.ds
Class | public class GraphArc
Inheritance | GraphArc Object

A weighted arc pointing to a graph node.

Public Properties

| Property | Defined By
--- | --- | ---
|  | node : GraphNode The node that the arc points to. | GraphArc
|  | weight : Number The weight (or cost) of the arc. | GraphArc

Public Methods

| Method | Defined By
--- | --- | ---
|  | GraphArc(node:GraphNode, weight:Number = 1) Creates a new graph arc with a given weight. | GraphArc

Property Detail

node | property

`public var node:GraphNode`

The node that the arc points to.

weight | property |

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

Thu Jan 16 2014, 01:11 PM +08:00