|
GraphLibrary
0.0.1
A simple library that implements various graph algorithms.
|
Functions | |
| template<class SCALAR , class STORAGE_KIND , class DIRECTION > | |
| void | saveImage (mglGraph *gr, gl::Graph< SCALAR, STORAGE_KIND, DIRECTION > &g, const char *lineArgs="") |
| Plot graph using mgl2. More... | |
| template<class SCALAR , class STORAGE_KIND , class DIRECTION > | |
| void | writeTikzNetwork (std::ostream &s, Graph< SCALAR, STORAGE_KIND, DIRECTION > &g, bool writeNodes=true, bool writeEdgeWeights=true) |
| Write structure to stream, given. More... | |
| void gl::external::saveImage | ( | mglGraph * | gr, |
| gl::Graph< SCALAR, STORAGE_KIND, DIRECTION > & | g, | ||
| const char * | lineArgs = "" |
||
| ) |
Plot graph using mgl2.
| gr | Pointer to mglGraph |
| g | the graph to plot |
| lineArgs | arguments for plotting the lines |
| void gl::external::writeTikzNetwork | ( | std::ostream & | s, |
| Graph< SCALAR, STORAGE_KIND, DIRECTION > & | g, | ||
| bool | writeNodes = true, |
||
| bool | writeEdgeWeights = true |
||
| ) |
Write structure to stream, given.
| s | stream to which it should write |
| g | A gl::Graph compatible graph. |
| writeNodes | whether the nodes shall be labeled (numbers) |
| writeEdgeWeights | whether the edges shall be labeled (weights) |