#include <graph.h>
|
| Node () |
|
| Node (double x, double y) |
|
| operator QVector2D () |
|
void | set (double x, double y) |
|
void | set (QPointF p) |
|
void | set (QVector2D p) |
|
void | setGroup (int g) |
|
int | getGroup (void) |
|
void | increment (void) |
|
int | getDegree (void) |
|
void | setInfo (QString s) |
|
QString | info () |
|
QString | toString () |
|
|
int | degree |
|
int | group |
|
QString | description |
|
Datastructure for one Node instance
Constructor for a node, initializes a node with position (0, 0)
Node::Node |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
|
inline |
Constructor for a node, initializes a node with position (x, y)
- Parameters
-
x | x-coordinate for Node's position |
y | y-coordinate for Node's position |
int Node::getDegree |
( |
void |
| ) |
|
|
inline |
int Node::getGroup |
( |
void |
| ) |
|
|
inline |
UNUSED getter for node affiliation with a group.
- Returns
- g group that node belongs to
void Node::increment |
( |
void |
| ) |
|
|
inline |
increment node's degree by 1.
return the node's descriptive string
- Returns
- description
void Node::setGroup |
( |
int |
g | ) |
|
|
inline |
UNUSED setter for node affiliation with a new group g.
- Parameters
-
g | new group that node belongs to |
void Node::setInfo |
( |
QString |
s | ) |
|
|
inline |
set the node's descriptive string
- Parameters
-
s | new info string for the node |
The documentation for this class was generated from the following file: