DefaultGraphToEpsTraits

Declared in lemon/graph_to_eps.h, in the group Postscript Exporting; the same struct on the Doxygen site.

template< class GR >
struct DefaultGraphToEpsTraits

Default traits class of GraphToEps.

Template Parameters:

GR – is the type of the underlying graph.

Public Types

enum NodeTextColorType

Values:

enumerator DIST_COL
enumerator DIST_BW
enumerator CUST_COL
enumerator SAME_COL
typedef GR Graph
typedef GR Digraph
typedef Graph::Node Node
typedef Graph::NodeIt NodeIt
typedef Graph::Arc Arc
typedef Graph::ArcIt ArcIt
typedef Graph::InArcIt InArcIt
typedef Graph::OutArcIt OutArcIt
typedef ConstMap< typename Graph::Node , dim2::Point< double > > CoordsMapType

Public Functions

inline DefaultGraphToEpsTraits(
const GR & gr,
std::ostream & ost = std::cout,
bool pros = false
)

Constructor.

Constructor

Parameters:
  • gr – Reference to the graph to be printed.

  • ost – Reference to the output stream. By default, it is std::cout.

  • pros – If it is true, then the ostream referenced by os will be explicitly deallocated by the destructor.

Public Members

const Graph & g
std::ostream & os
CoordsMapType _coords
ConstMap< typename Graph::Node , double > _nodeSizes
ConstMap< typename Graph::Node , int > _nodeShapes
ConstMap< typename Graph::Node , Color > _nodeColors
ConstMap< typename Graph::Arc , Color > _arcColors
ConstMap< typename Graph::Arc , double > _arcWidths
double _arcWidthScale
double _nodeScale
double _xBorder
double _yBorder
double _scale
double _nodeBorderQuotient
bool _drawArrows
double _arrowLength
double _arrowWidth
bool _showNodes
bool _showArcs
bool _enableParallel
double _parArcDist
bool _showNodeText
ConstMap< typename Graph::Node , bool > _nodeTexts
double _nodeTextSize
bool _showNodePsText
ConstMap< typename Graph::Node , bool > _nodePsTexts
char * _nodePsTextsPreamble
bool _undirected
bool _pleaseRemoveOsStream
std::shared_ptr< std::ostream > _osOwner
bool _scaleToA4
std::string _title
std::string _copyright
enum lemon::DefaultGraphToEpsTraits::NodeTextColorType _nodeTextColorType
ConstMap< typename Graph::Node , Color > _nodeTextColors
bool _autoNodeScale
bool _autoArcWidthScale
bool _absoluteNodeSizes
bool _absoluteArcWidths
bool _negY
bool _preScale