![]() |
fpmas 1.6
|
#include <graph_builder.h>
Public Member Functions | |
virtual std::vector< api::graph::DistributedNode< T > * > | build (NodeBuilder< T > &node_builder, LayerId layer, DistributedGraph< T > &graph)=0 |
An utility interface used to automatically generate some graphs on a single process.
T | graph datatype |
|
pure virtual |
Automatically builds the specified graph according to the current implementation.
Nodes are generated using the specified NodeBuilder. More precisely, NodeBuilder::nodeCount() nodes will be inserted in the graph. Generated nodes can then be linked on the specified layer, according to rules defined by the implemented algorithm.
Notice that the specified graph is not required to be empty.
node_builder | NodeBuilder instance used to generate nodes |
layer | layer on which nodes will be linked |
graph | graph in which nodes and edges will be inserted |
Implemented in fpmas::graph::ClusteredGraphBuilder< T >, fpmas::graph::BipartiteGraphBuilder< T >, and fpmas::graph::UniformGraphBuilder< T >.