![]() |
fpmas 1.6
|
#include <node.h>
Public Types | |
typedef _IdType | IdType |
typedef _EdgeType | EdgeType |
Public Member Functions | |
virtual IdType | getId () const =0 |
virtual float | getWeight () const =0 |
virtual void | setWeight (float weight)=0 |
virtual const std::vector< EdgeType * > | getIncomingEdges () const =0 |
virtual const std::vector< EdgeType * > | getIncomingEdges (LayerId layer_id) const =0 |
virtual const std::vector< typename EdgeType::NodeType * > | inNeighbors () const =0 |
virtual const std::vector< typename EdgeType::NodeType * > | inNeighbors (LayerId layer_id) const =0 |
virtual const std::vector< EdgeType * > | getOutgoingEdges () const =0 |
virtual const std::vector< EdgeType * > | getOutgoingEdges (LayerId layer_id) const =0 |
virtual const std::vector< typename EdgeType::NodeType * > | outNeighbors () const =0 |
virtual const std::vector< typename EdgeType::NodeType * > | outNeighbors (LayerId layer_id) const =0 |
virtual void | linkIn (EdgeType *edge)=0 |
virtual void | linkOut (EdgeType *edge)=0 |
virtual void | unlinkIn (EdgeType *edge)=0 |
virtual void | unlinkOut (EdgeType *edge)=0 |
Graph node
typedef _IdType fpmas::api::graph::Node< _IdType, _EdgeType >::IdType |
ID type
typedef _EdgeType fpmas::api::graph::Node< _IdType, _EdgeType >::EdgeType |
Edge type
|
pure virtual |
ID of the Node.
Implemented in fpmas::graph::Node< _IdType, _EdgeType >, and fpmas::graph::Node< DistributedId, api::graph::DistributedEdge< T > >.
|
pure virtual |
Weight of the Node.
The node's weight might be used to perform LoadBalancing.
Implemented in fpmas::graph::Node< _IdType, _EdgeType >, and fpmas::graph::Node< DistributedId, api::graph::DistributedEdge< T > >.
|
pure virtual |
Sets the weight of the Node.
weight | new weight |
Implemented in fpmas::graph::Node< _IdType, _EdgeType >, and fpmas::graph::Node< DistributedId, api::graph::DistributedEdge< T > >.
|
pure virtual |
Returns a vector containing pointers to all the incoming edges of this node.
Implemented in fpmas::graph::Node< _IdType, _EdgeType >, and fpmas::graph::Node< DistributedId, api::graph::DistributedEdge< T > >.
|
pure virtual |
Returns a vector containing pointers to the incoming edges of this node on the specified layer.
layer_id | layer ID |
Implemented in fpmas::graph::Node< _IdType, _EdgeType >, and fpmas::graph::Node< DistributedId, api::graph::DistributedEdge< T > >.
|
pure virtual |
Returns a vector containing pointers to all the nodes connected to this node with an incoming edge, as returned by getIncomingEdges().
Implemented in fpmas::graph::Node< _IdType, _EdgeType >, and fpmas::graph::Node< DistributedId, api::graph::DistributedEdge< T > >.
|
pure virtual |
Returns a vector containing pointers to the nodes connected to this node with an incoming edge on the specified layer, as returned by getIncomingEdges(layer_id).
layer_id | layer ID |
Implemented in fpmas::graph::Node< _IdType, _EdgeType >, and fpmas::graph::Node< DistributedId, api::graph::DistributedEdge< T > >.
|
pure virtual |
Returns a vector containing pointers to all the outgoing edges of this node.
Implemented in fpmas::graph::Node< _IdType, _EdgeType >, and fpmas::graph::Node< DistributedId, api::graph::DistributedEdge< T > >.
|
pure virtual |
Returns a vector containing pointers to the outgoing edges of this node on the specified layer.
layer_id | layer ID |
Implemented in fpmas::graph::Node< _IdType, _EdgeType >, and fpmas::graph::Node< DistributedId, api::graph::DistributedEdge< T > >.
|
pure virtual |
Returns a vector containing pointers to all the nodes connected to this node with an outgoing edge, as returned by getOutgoingEdges().
Implemented in fpmas::graph::Node< _IdType, _EdgeType >, and fpmas::graph::Node< DistributedId, api::graph::DistributedEdge< T > >.
|
pure virtual |
Returns a vector containing pointers to the nodes connected to this node with an outgoing edge on the specified layer, as returned by getOutgoingEdges(layer_id).
layer_id | layer ID |
Implemented in fpmas::graph::Node< _IdType, _EdgeType >, and fpmas::graph::Node< DistributedId, api::graph::DistributedEdge< T > >.
|
pure virtual |
Links the specified incoming edge to this node.
Once the node is linked, it should be returned in the following lists :
edge | incoming edge to link |
Implemented in fpmas::graph::Node< _IdType, _EdgeType >, and fpmas::graph::Node< DistributedId, api::graph::DistributedEdge< T > >.
|
pure virtual |
Links the specified outgoing edge to this node.
Once the node is linked, it should be returned in the following lists :
edge | outgoing edge to link |
Implemented in fpmas::graph::Node< _IdType, _EdgeType >, and fpmas::graph::Node< DistributedId, api::graph::DistributedEdge< T > >.
|
pure virtual |
Unlinks the specified incoming edge from this node.
Once the node is unlinked, it should not be returned anymore by the following functions :
edge | incoming edge to unlink |
Implemented in fpmas::graph::Node< _IdType, _EdgeType >, and fpmas::graph::Node< DistributedId, api::graph::DistributedEdge< T > >.
|
pure virtual |
Unlinks the specified outgoing edge from this node.
Once the node is unlinked, it should not be returned anymore by the following functions :
edge | outgoing edge to unlink |
Implemented in fpmas::graph::Node< _IdType, _EdgeType >, and fpmas::graph::Node< DistributedId, api::graph::DistributedEdge< T > >.