Evoplex
0.2.1
|
A common interface for the node's classes. More...
#include <node_p.h>
Public Member Functions | |
virtual | ~NodeInterface ()=default |
Destructor. | |
virtual NodePtr | clone () const =0 |
Creates a new std::shared_ptr<BaseNode> with the same data of the current Node. | |
virtual const Edges & | inEdges () const =0 |
Gets the edges entering the node. | |
virtual const Edges & | outEdges () const =0 |
Gets the edges leaving the node. | |
virtual int | degree () const =0 |
Gets the node's degree. | |
virtual int | inDegree () const =0 |
Gets the node's in-degree, i.e., the number of edges entering the node. | |
virtual int | outDegree () const =0 |
Gets the node's out-degree, i.e., the number of edges leaving the node. | |
Friends | |
class | AbstractGraph |
class | Nodes |
class | TestNode |
class | TestEdge |