![]() |
fpmas 1.6
|
#include <edge.h>

Public Types | |
| typedef _IdType | IdType |
| typedef _NodeType | NodeType |
Public Member Functions | |
| virtual IdType | getId () const =0 |
| virtual LayerId | getLayer () const =0 |
| virtual void | setLayer (LayerId layer)=0 |
| virtual float | getWeight () const =0 |
| virtual void | setWeight (float weight)=0 |
| virtual void | setSourceNode (NodeType *const src)=0 |
| virtual NodeType * | getSourceNode () const =0 |
| virtual void | setTargetNode (NodeType *const tgt)=0 |
| virtual NodeType * | getTargetNode () const =0 |
Graph edge
An Edge represents a link between two nodes on a given layer.
| typedef _IdType fpmas::api::graph::Edge< _IdType, _NodeType >::IdType |
ID type
| typedef _NodeType fpmas::api::graph::Edge< _IdType, _NodeType >::NodeType |
Node type
|
pure virtual |
ID of the Edge.
Implemented in fpmas::graph::Edge< _IdType, _NodeType >, and fpmas::graph::Edge< DistributedId, api::graph::DistributedNode< T > >.
|
pure virtual |
Layer of the Edge.
Layers are used to subset incoming and outgoing edges lists in the following Node's functions:
Implemented in fpmas::graph::Edge< _IdType, _NodeType >, and fpmas::graph::Edge< DistributedId, api::graph::DistributedNode< T > >.
|
pure virtual |
Sets the layer of this edge.
This method does not re-bind the source and target nodes on the proper layer. This can be handled automatically by the DistributedGraph::switchLayer() method.
| layer | new layer |
Implemented in fpmas::graph::Edge< _IdType, _NodeType >, and fpmas::graph::Edge< DistributedId, api::graph::DistributedNode< T > >.
|
pure virtual |
Weight of the Edge.
The edge's weight might be used to perform LoadBalancing.
Implemented in fpmas::graph::Edge< _IdType, _NodeType >, and fpmas::graph::Edge< DistributedId, api::graph::DistributedNode< T > >.
|
pure virtual |
Sets the weight of the Edge.
| weight | new weight |
Implemented in fpmas::graph::Edge< _IdType, _NodeType >, and fpmas::graph::Edge< DistributedId, api::graph::DistributedNode< T > >.
|
pure virtual |
Sets the source node of this edge.
| src | pointer to source node |
Implemented in fpmas::graph::Edge< _IdType, _NodeType >, and fpmas::graph::Edge< DistributedId, api::graph::DistributedNode< T > >.
|
pure virtual |
Source node of this edge.
Implemented in fpmas::graph::Edge< _IdType, _NodeType >, and fpmas::graph::Edge< DistributedId, api::graph::DistributedNode< T > >.
|
pure virtual |
Sets the target node of this edge.
| tgt | pointer to target node |
Implemented in fpmas::graph::Edge< _IdType, _NodeType >, and fpmas::graph::Edge< DistributedId, api::graph::DistributedNode< T > >.
|
pure virtual |
Target node of this edge.
Implemented in fpmas::graph::Edge< _IdType, _NodeType >, and fpmas::graph::Edge< DistributedId, api::graph::DistributedNode< T > >.