#include <graph.h>
The class GNode defines a node. A node indexes an object in a separate array of objects at specified coordinates in the related image. It is characterized by a value and a list of connected nodes.
Public Member Functions | |
| GNode (Long i) | |
| GNode (Long i, const Point p) | |
| ~GNode () | |
| GEdge * | Neighbours () const |
| GEdge * | Search (Long n) const |
| GEdge * | Search (Long n, Long i) const |
| GEdge * | Add (Long n, Double w) |
| GEdge * | Add (Long n, Long i, Double w) |
| GEdge * | Del (Long n) |
| GEdge * | Del (Long n, Long i) |
| Long | Item () const |
| Long | Item (Long i) |
Public Attributes | |
| Double | value |
| Point | seed |
|
||||||||||
|
Creates a new node with the specified index, and the specified coordinates.
|
|
||||||||||||||||
|
Creates a new node with the specified index, and the specified coordinates.
|
|
|||||||||
|
Deletes the node. |
|
||||||||||||||||||||
|
Adds the specified node with the specified weight and the specified identifier. in front of the list of connected nodes
|
|
||||||||||||||||
|
Adds the specified node with the specified weight. in front of the list of connected nodes
|
|
||||||||||||||||
|
Deletes specific edge linking to the specified node from the list of connected nodes.
|
|
||||||||||
|
Deletes the specified node from the list of connected nodes.
|
|
||||||||||
|
Sets the new index of the referenced object.
|
|
|||||||||
|
Returns the index of the referenced object.
|
|
|||||||||
|
Returns the list of all the connected nodes.
|
|
||||||||||||||||
|
Returns the edge from the specified node.
|
|
||||||||||
|
Returns the edge from the specified node.
|
|
|||||
|
The coordinates of the node seeds. |
|
|||||
|
The valuation of the node. |