#include <lemon/graph_to_eps.h>
Definition at line 165 of file graph_to_eps.h.
Public Types | |
enum | NodeShapes { CIRCLE = 0, SQUARE = 1, DIAMOND = 2 } |
Node shapes. More... | |
Public Member Functions | |
template<class X> | |
GraphToEps< CoordsTraits< X > > | coords (const X &x) |
Sets the map of the node coordinates. | |
template<class X> | |
GraphToEps< NodeSizesTraits< X > > | nodeSizes (const X &x) |
Sets the map of the node sizes. | |
template<class X> | |
GraphToEps< NodeShapesTraits< X > > | nodeShapes (const X &x) |
Sets the map of the node shapes. | |
template<class X> | |
GraphToEps< NodeTextsTraits< X > > | nodeTexts (const X &x) |
Sets the text printed on the nodes. | |
template<class X> | |
GraphToEps< NodePsTextsTraits< X > > | nodePsTexts (const X &x) |
Inserts a PostScript block to the nodes. | |
template<class X> | |
GraphToEps< EdgeWidthsTraits< X > > | edgeWidths (const X &x) |
Sets the map of the edge widths. | |
template<class X> | |
GraphToEps< NodeColorsTraits< X > > | nodeColors (const X &x) |
Sets the map of the node colors. | |
template<class X> | |
GraphToEps< EdgeColorsTraits< X > > | edgeColors (const X &x) |
Sets the map of the edge colors. | |
GraphToEps< T > & | nodeScale (double d) |
Sets a global scale factor for node sizes. | |
GraphToEps< T > & | edgeWidthScale (double d) |
Sets a global scale factor for edge widths. | |
GraphToEps< T > & | scale (double d) |
Sets a global scale factor for the whole picture. | |
GraphToEps< T > & | border (double b) |
Sets the width of the border around the picture. | |
GraphToEps< T > & | border (double x, double y) |
Sets the width of the border around the picture. | |
GraphToEps< T > & | drawArrows (bool b=true) |
Sets whether to draw arrows. | |
GraphToEps< T > & | arrowLength (double d) |
Sets the length of the arrowheads. | |
GraphToEps< T > & | arrowWidth (double d) |
Sets the width of the arrowheads. | |
GraphToEps< T > & | scaleToA4 () |
Scales the drawing to fit to A4 page. | |
GraphToEps< T > & | enableParallel (bool b=true) |
Enables parallel edges. | |
GraphToEps< T > & | parEdgeDist (double d) |
Sets the distance. | |
GraphToEps< T > & | hideEdges (bool b=true) |
Hides the edges. | |
GraphToEps< T > & | hideNodes (bool b=true) |
Hides the nodes. | |
GraphToEps< T > & | nodeTextSize (double d) |
Sets the size of the node texts. | |
GraphToEps< T > & | nodePsTextsPreamble (const char *str) |
Gives a preamble block for node Postscript block. | |
GraphToEps< T > & | undir (bool b=true) |
Sets whether the the graph is undirected. | |
GraphToEps< T > & | bidir (bool b=true) |
Sets whether the the graph is directed. | |
GraphToEps< T > & | title (const std::string &t) |
Sets the title. | |
GraphToEps< T > & | copyright (const std::string &t) |
Sets the copyright statement. | |
void | run () |
Draws the graph. |
|
Node shapes Definition at line 184 of file graph_to_eps.h. |
|
Sets the map of the node coordinates.
Definition at line 245 of file graph_to_eps.h. |
|
Sets the map of the node sizes
Definition at line 257 of file graph_to_eps.h. |
|
Sets the map of the node shapes. The availabe shape values can be found in enum NodeShapes.
Definition at line 273 of file graph_to_eps.h. |
|
Sets the text printed on the nodes
Definition at line 287 of file graph_to_eps.h. |
|
With this command it is possible to insert a verbatim PostScript block to the nodes. The PS current point will be moved to the centre of the node before the PostScript block inserted. Before and after the block a newline character is inserted to you don't have to bother with the separators.
Definition at line 313 of file graph_to_eps.h. |
|
Sets the map of the edge widths
Definition at line 327 of file graph_to_eps.h. |
|
Sets the map of the node colors
Definition at line 342 of file graph_to_eps.h. |
|
Sets the map of the edge colors
Definition at line 356 of file graph_to_eps.h. |
|
Sets a global scale factor for node sizes Definition at line 365 of file graph_to_eps.h. |
|
Sets a global scale factor for edge widths Definition at line 370 of file graph_to_eps.h. |
|
Sets a global scale factor for the whole picture Definition at line 375 of file graph_to_eps.h. |
|
Sets the width of the border around the picture Definition at line 380 of file graph_to_eps.h. |
|
Sets the width of the border around the picture Definition at line 385 of file graph_to_eps.h. |
|
Sets whether to draw arrows Definition at line 392 of file graph_to_eps.h. |
|
Sets the length of the arrowheads Definition at line 397 of file graph_to_eps.h. |
|
Sets the width of the arrowheads Definition at line 402 of file graph_to_eps.h. |
|
Scales the drawing to fit to A4 page Definition at line 408 of file graph_to_eps.h. |
|
Enables parallel edges
Definition at line 414 of file graph_to_eps.h. |
|
Sets the distance Definition at line 420 of file graph_to_eps.h. |
|
Hides the edges Definition at line 426 of file graph_to_eps.h. |
|
Hides the nodes Definition at line 431 of file graph_to_eps.h. |
|
Sets the size of the node texts Definition at line 437 of file graph_to_eps.h. |
|
Gives a preamble block for node Postscript block.
Definition at line 443 of file graph_to_eps.h. |
|
Sets whether the the graph is undirected Definition at line 450 of file graph_to_eps.h. |
|
Sets whether the the graph is directed. Use it to show the undirected edges as a pair of directed ones. Definition at line 455 of file graph_to_eps.h. |
|
Sets the title of the generated image, namely it inserts a Definition at line 462 of file graph_to_eps.h. |
|
Sets the copyright statement of the generated image, namely it inserts a
Definition at line 469 of file graph_to_eps.h. |
|
Like other functions using named template parameters, this function calles the algorithm itself, i.e. in this case it draws the graph.
Definition at line 494 of file graph_to_eps.h. |
Here is the call graph for this function: