The fast multipole embedder approach for force-directed layout. More...
#include <ogdf/energybased/FastMultipoleEmbedder.h>
Public Member Functions | |
FastMultipoleEmbedder () | |
constructor | |
~FastMultipoleEmbedder () | |
destructor | |
void | call (const Graph &G, NodeArray< float > &nodeXPosition, NodeArray< float > &nodeYPosition, const EdgeArray< float > &edgeLength, const NodeArray< float > &nodeSize) |
Calls the algorithm for graph G with the given edgelength and returns the layout information in nodeXPosition , nodeYPosition . | |
virtual void | call (GraphAttributes &GA) override |
Calls the algorithm for graph GA and returns the layout information in GA . | |
void | call (GraphAttributes &GA, const EdgeArray< float > &edgeLength, const NodeArray< float > &nodeSize) |
Calls the algorithm for graph GA with the given edgeLength and returns the layout information in GA . | |
void | setDefaultEdgeLength (float edgeLength) |
void | setDefaultNodeSize (float nodeSize) |
void | setMultipolePrec (uint32_t precision) |
sets the number of coefficients for the expansions. default = 4 | |
void | setNumberOfThreads (uint32_t numThreads) |
void | setNumIterations (uint32_t numIterations) |
sets the maximum number of iterations | |
void | setRandomize (bool b) |
if true, layout algorithm will randomize the layout in the beginning | |
Public Member Functions inherited from ogdf::LayoutModule | |
LayoutModule () | |
Initializes a layout module. | |
virtual | ~LayoutModule () |
void | operator() (GraphAttributes &GA) |
Computes a layout of graph GA . | |
Private Member Functions | |
void | allocate (uint32_t numNodes, uint32_t numEdges) |
allocates the memory | |
void | deallocate () |
frees the memory | |
void | initOptions () |
void | run (uint32_t numIterations) |
runs the simulation with the given number of iterations | |
void | runMultipole () |
void | runSingle () |
The fast multipole embedder approach for force-directed layout.
Definition at line 46 of file FastMultipoleEmbedder.h.
Definition at line 47 of file FastMultipoleEmbedder.h.
|
private |
Definition at line 49 of file FastMultipoleEmbedder.h.
|
private |
Definition at line 48 of file FastMultipoleEmbedder.h.
|
private |
Definition at line 50 of file FastMultipoleEmbedder.h.
Definition at line 51 of file FastMultipoleEmbedder.h.
ogdf::FastMultipoleEmbedder::FastMultipoleEmbedder | ( | ) |
constructor
ogdf::FastMultipoleEmbedder::~FastMultipoleEmbedder | ( | ) |
destructor
allocates the memory
void ogdf::FastMultipoleEmbedder::call | ( | const Graph & | G, |
NodeArray< float > & | nodeXPosition, | ||
NodeArray< float > & | nodeYPosition, | ||
const EdgeArray< float > & | edgeLength, | ||
const NodeArray< float > & | nodeSize | ||
) |
Calls the algorithm for graph G
with the given edgelength and returns the layout information in nodeXPosition
, nodeYPosition
.
|
overridevirtual |
Calls the algorithm for graph GA
and returns the layout information in GA
.
Implements ogdf::LayoutModule.
void ogdf::FastMultipoleEmbedder::call | ( | GraphAttributes & | GA, |
const EdgeArray< float > & | edgeLength, | ||
const NodeArray< float > & | nodeSize | ||
) |
Calls the algorithm for graph GA
with the given edgeLength
and returns the layout information in GA
.
|
private |
frees the memory
|
private |
runs the simulation with the given number of iterations
|
private |
|
private |
Definition at line 81 of file FastMultipoleEmbedder.h.
Definition at line 84 of file FastMultipoleEmbedder.h.
sets the number of coefficients for the expansions. default = 4
Definition at line 75 of file FastMultipoleEmbedder.h.
Definition at line 87 of file FastMultipoleEmbedder.h.
sets the maximum number of iterations
Definition at line 72 of file FastMultipoleEmbedder.h.
if true, layout algorithm will randomize the layout in the beginning
Definition at line 78 of file FastMultipoleEmbedder.h.
|
private |
Definition at line 125 of file FastMultipoleEmbedder.h.
|
private |
Definition at line 127 of file FastMultipoleEmbedder.h.
|
private |
Definition at line 131 of file FastMultipoleEmbedder.h.
|
private |
Definition at line 129 of file FastMultipoleEmbedder.h.
|
private |
Definition at line 113 of file FastMultipoleEmbedder.h.
|
private |
Definition at line 115 of file FastMultipoleEmbedder.h.
|
private |
Definition at line 119 of file FastMultipoleEmbedder.h.
|
private |
Definition at line 121 of file FastMultipoleEmbedder.h.
|
private |
Definition at line 123 of file FastMultipoleEmbedder.h.
|
private |
Definition at line 117 of file FastMultipoleEmbedder.h.