topical media & game development

talk show tell print

lib-as-de-polygonal-ds-GraphArc.ax

lib-as-de-polygonal-ds-GraphArc.ax (swf ) [ flash ] flex


  
Copyright (c) Michael Baczynski 2007 http://lab.polygonal.de/ds/ This software is distributed under licence. Use of this software implies agreement with all terms and conditions of the accompanying software licence.

  
  package de.polygonal.ds
  {
          
A weighted arc pointing to a graph node.

  
          public class @ax-lib-as-de-polygonal-ds-GraphArc
          {
                  
The node that the arc points to being referenced.

  
                  public var node:GraphNode;
                  
                  
The weight (or cost) of the arc.

  
                  public var weight:Number
                  
                  
Initializes a new graph arc with a given weight.
parameter: node The graph node.
parameter: weight The weight.

  
                  public function @ax-lib-as-de-polygonal-ds-GraphArc(node:GraphNode, weight:Number = 1)
                  {
                          this.node = node;
                          this.weight = weight;
                  }
          }
  }


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.