lib-as-de-polygonal-ds-GraphNode.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.
A graph node.
The data being referenced.
An array of arcs connecting this node to other nodes.
A flag indicating whether the node is marked or not. Used for iterating over a graph structure.
Constructs a new graph node.
parameter: obj The data to store inside the node.
Adds an arc to the current graph node, pointing to a different graph node and with a given weight.
parameter: target The destination node the arc should point to.
parameter: weigth The arc's weigth.
Removes the arc that points to the given node.
returns: True if removal was successful, otherwise false.
Finds the arc that points to the given node.
parameter: target The destination node.
returns: A GraphArc object or null if the arc doesn't exist.
The number of arcs extending from this node.
(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.