GraphLibrary  0.0.1
A simple library that implements various graph algorithms.
 All Classes Namespaces Files Functions Variables Typedefs Macros
gl::external Namespace Reference

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...
 

Function Documentation

template<class SCALAR , class STORAGE_KIND , class DIRECTION >
void gl::external::saveImage ( mglGraph *  gr,
gl::Graph< SCALAR, STORAGE_KIND, DIRECTION > &  g,
const char *  lineArgs = "" 
)

Plot graph using mgl2.

Parameters
grPointer to mglGraph
gthe graph to plot
lineArgsarguments for plotting the lines
template<class SCALAR , class STORAGE_KIND , class DIRECTION >
void gl::external::writeTikzNetwork ( std::ostream &  s,
Graph< SCALAR, STORAGE_KIND, DIRECTION > &  g,
bool  writeNodes = true,
bool  writeEdgeWeights = true 
)

Write structure to stream, given.

Parameters
sstream to which it should write
gA gl::Graph compatible graph.
writeNodeswhether the nodes shall be labeled (numbers)
writeEdgeWeightswhether the edges shall be labeled (weights)