57 NGNode(
const std::string&
id);
66 NGNode(
const std::string&
id,
int xPos,
int yPos);
76 NGNode(
const std::string&
id,
int xID,
int yID,
bool amCenter);
177 return xID == xPos && yID == yPos;
A netgen-representation of an edge.
int xID
Integer x-position (x-id)
bool myAmCenter
Information whether this is the center of a cpider-net.
double y() const
Returns the y-position.
The representation of a single edge during network building.
int yID
Integer y-position (y-id)
double x() const
Returns the x-position.
void removeLink(NGEdge *link)
Removes the given link.
std::list< NGEdge * > NGEdgeList
A list of edges (edge pointers)
void set(double x, double y)
set positions x and y
void setX(double x)
Sets a new value for x-position.
A point in 2D or 3D with translation and scaling methods.
bool connected(NGNode *node) const
Returns whether the other node is connected.
std::list< NGNode * > NGNodeList
A list of nodes (node pointers)
int getMaxNeighbours()
Returns this node's maximum neighbour number.
Base class for objects which have an id.
Position myPosition
The position of the node.
int myMaxNeighbours
The maximum number of neighbours.
Instance responsible for building networks.
NGNode(const std::string &id)
Constructor.
bool samePos(int xPos, int yPos) const
Returns whether the node has the given position.
Represents a single node (junction) during network building.
void setMaxNeighbours(int value)
Sets this node's maximum neighbour number.
const Position & getPosition() const
Returns this node's position.
A class that builds random network using an algorithm by Markus Hartinger.
A netgen-representation of a node.
void setY(double y)
Sets a new value for y-position.
NBNode * buildNBNode(NBNetBuilder &nb, const Position &perturb) const
Builds and returns this node's netbuild-representation.
NGEdgeList LinkList
List of connected links.
void addLink(NGEdge *link)
Adds the given link to the internal list.