| Package | com.yworks.yfiles.util.pq |
| Class | public class TreeIntNodePQ |
| Inheritance | TreeIntNodePQ YObject Object |
| Implements | IntNodePQ |
| Property | Defined By | ||
|---|---|---|---|
| empty : Boolean [read-only]
Complexity O(1).
| TreeIntNodePQ | ||
| min : Node [read-only]
Returns the node with the minimal value in the queue.
Complexity O(log(n)).
| TreeIntNodePQ | ||
| Method | Defined By | ||
|---|---|---|---|
TreeIntNodePQ(_graph:Graph, init:Boolean = true)
Returns an empty Priority-Queue. | TreeIntNodePQ | ||
Inserts a node into the queue. | TreeIntNodePQ | ||
clear():void
Removes all entities from the queue.
Complexity O(1).
| TreeIntNodePQ | ||
Returns whether or not the given node is contained within this queue.
Complexity O(log(n)).
| TreeIntNodePQ | ||
decreasePriority(n:Node, value:int):void
Decreases the value of a node in the queue to a certain value.
Complexity O(log(n)).
| TreeIntNodePQ | ||
dispose():void
Disposes this queue. | TreeIntNodePQ | ||
![]() | equals(o:Object):Boolean | YObject | |
getClass():Class [override] | TreeIntNodePQ | ||
getPriority(v:Node):int | TreeIntNodePQ | ||
![]() | hashCode():int | YObject | |
[static]
Returns an empty Priority-Queue. | TreeIntNodePQ | ||
[static]
Returns an empty Priority-Queue. | TreeIntNodePQ | ||
[static]
Returns a new Priority-Queue initialized with all nodes of the graph. | TreeIntNodePQ | ||
Removes a node from the queue. | TreeIntNodePQ | ||
Removes the node with the minimal value from the queue.
Complexity O(log(n)).
| TreeIntNodePQ | ||
| Method | Defined By | ||
|---|---|---|---|
initTreeIntNodePQ1(_graph:Graph):void
Initializes this object. | TreeIntNodePQ | ||
initTreeIntNodePQ2(_valueMap:NodeMap):void
Initializes this object. | TreeIntNodePQ | ||
Initializes this object. | TreeIntNodePQ | ||
| empty | property |
empty:Boolean [read-only]
Complexity O(1).
public function get empty():Boolean| min | property |
min:Node [read-only] Returns the node with the minimal value in the queue.
Complexity O(log(n)).
public function get min():Node| TreeIntNodePQ | () | Constructor |
public function TreeIntNodePQ(_graph:Graph, init:Boolean = true)Returns an empty Priority-Queue.
Parameters_graph:Graph — the graph which contains the nodes
| |
init:Boolean (default = true) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods.
This parameter can safely be ignored/omitted when calling the constructor.
|
| add | () | method |
public function add(n:Node, value:int):voidInserts a node into the queue.
Complexity O(log(n)).
Parameters
n:Node | |
value:int |
| clear | () | method |
public function clear():voidRemoves all entities from the queue.
Complexity O(1).
| contains | () | method |
public function contains(n:Node):BooleanReturns whether or not the given node is contained within this queue.
Complexity O(log(n)).
Parameters
n:Node |
Boolean |
| decreasePriority | () | method |
public function decreasePriority(n:Node, value:int):voidDecreases the value of a node in the queue to a certain value.
Complexity O(log(n)).
Parameters
n:Node — a node in the priority queue.
| |
value:int — the new priority value of the node.
|
| dispose | () | method |
public function dispose():voidDisposes this queue. It is important to call this method after the queue is not needed anymore, to free hold resources.
| getClass | () | method |
override public function getClass():ClassReturnsClass |
| getPriority | () | method |
| initTreeIntNodePQ1 | () | method |
protected final function initTreeIntNodePQ1(_graph:Graph):void
Initializes this object. See the documentation of the corresponding factory method newTreeIntNodePQ1() for details.
Parameters
_graph:Graph |
See also
| initTreeIntNodePQ2 | () | method |
protected final function initTreeIntNodePQ2(_valueMap:NodeMap):void
Initializes this object. See the documentation of the corresponding factory method newTreeIntNodePQ2() for details.
Parameters
_valueMap:NodeMap |
See also
| initTreeIntNodePQ3 | () | method |
protected final function initTreeIntNodePQ3(_graph:Graph, _initValues:DataProvider):void
Initializes this object. See the documentation of the corresponding factory method newTreeIntNodePQ3() for details.
Parameters
_graph:Graph | |
_initValues:DataProvider |
See also
| newTreeIntNodePQ1 | () | method |
public static function newTreeIntNodePQ1(_graph:Graph):TreeIntNodePQReturns an empty Priority-Queue.
Parameters
_graph:Graph — the graph which contains the nodes
|
TreeIntNodePQ |
| newTreeIntNodePQ2 | () | method |
public static function newTreeIntNodePQ2(_valueMap:NodeMap):TreeIntNodePQ
Returns an empty Priority-Queue.
This constructor takes a NodeMap as argument which is used to store the priority values.
Parameters
_valueMap:NodeMap — here the priority values are stored
|
TreeIntNodePQ |
| newTreeIntNodePQ3 | () | method |
public static function newTreeIntNodePQ3(_graph:Graph, _initValues:DataProvider):TreeIntNodePQReturns a new Priority-Queue initialized with all nodes of the graph.
Parameters
_graph:Graph — the graph which contains the nodes
| |
_initValues:DataProvider — the initial priority-values of the nodes.
|
TreeIntNodePQ |
| remove | () | method |
public function remove(n:Node):voidRemoves a node from the queue.
Complexity O(log(n)).
Parameters
n:Node |
| removeMin | () | method |
public function removeMin():NodeRemoves the node with the minimal value from the queue.
Complexity O(log(n)).
ReturnsNode |