equal
deleted
inserted
replaced
23 #include <lemon/graph_to_eps.h> |
23 #include <lemon/graph_to_eps.h> |
24 |
24 |
25 |
25 |
26 using namespace lemon; |
26 using namespace lemon; |
27 |
27 |
28 |
28 GRAPH_TYPEDEFS(ListGraph) |
29 typedef ListGraph::Node Node; |
|
30 typedef ListGraph::NodeIt NodeIt; |
|
31 typedef ListGraph::Edge Edge; |
|
32 typedef ListGraph::EdgeIt EdgeIt; |
|
33 typedef ListGraph::OutEdgeIt OutEdgeIt; |
|
34 typedef ListGraph::InEdgeIt InEdgeIt; |
|
35 |
29 |
36 int main(int argc, char** argv) |
30 int main(int argc, char** argv) |
37 { |
31 { |
38 if(argc!=2) { |
32 if(argc!=2) { |
39 std::cerr << "\n USAGE: " << argv[0] |
33 std::cerr << "\n USAGE: " << argv[0] |
111 title("Sample .eps figure (fits to A4)"). |
105 title("Sample .eps figure (fits to A4)"). |
112 copyright("(C) 2006 LEMON Project"). |
106 copyright("(C) 2006 LEMON Project"). |
113 nodeScale(15). |
107 nodeScale(15). |
114 coords(coords). |
108 coords(coords). |
115 negateY(). |
109 negateY(). |
116 edgeColors(composeMap(ColorSet(),rev)). |
110 edgeColors(composeMap(Palette(),rev)). |
117 edgeWidthScale(1). |
111 edgeWidthScale(1). |
118 nodeTexts(f).nodeTextSize(20). |
112 nodeTexts(f).nodeTextSize(20). |
119 drawArrows().arrowWidth(10).arrowLength(10). |
113 drawArrows().arrowWidth(10).arrowLength(10). |
120 run(); |
114 run(); |
121 |
115 |