18namespace layer1_foundations {
82 int argc, std::string *argv,
86 int f_v = (verbose_level >= 1);
90 cout <<
"layered_graph_draw_options::read_arguments" << endl;
92 for (i = 0; i < argc; i++) {
94 if (ST.
stringcmp(argv[i],
"-paperheight") == 0) {
101 else if (ST.
stringcmp(argv[i],
"-paperwidth") == 0) {
108 else if (ST.
stringcmp(argv[i],
"-xin") == 0) {
111 cout <<
"-xin " <<
xin << endl;
114 else if (ST.
stringcmp(argv[i],
"-yin") == 0) {
117 cout <<
"-yin " <<
yin << endl;
120 else if (ST.
stringcmp(argv[i],
"-xout") == 0) {
123 cout <<
"-xout " <<
xout << endl;
126 else if (ST.
stringcmp(argv[i],
"-yout") == 0) {
129 cout <<
"-yout " <<
yout << endl;
132 else if (ST.
stringcmp(argv[i],
"-spanning_tree") == 0) {
135 cout <<
"-spanning_tree " << endl;
138 else if (ST.
stringcmp(argv[i],
"-circle") == 0) {
141 cout <<
"-circle " << endl;
144 else if (ST.
stringcmp(argv[i],
"-corners") == 0) {
147 cout <<
"-corners " << endl;
150 else if (ST.
stringcmp(argv[i],
"-radius") == 0) {
153 cout <<
"-radius " <<
rad << endl;
156 else if (ST.
stringcmp(argv[i],
"-embedded") == 0) {
159 cout <<
"-embedded " << endl;
162 else if (ST.
stringcmp(argv[i],
"-sideways") == 0) {
165 cout <<
"-sideways " << endl;
168 else if (ST.
stringcmp(argv[i],
"-show_level_info") == 0) {
171 cout <<
"-show_level_info " << endl;
174 else if (ST.
stringcmp(argv[i],
"-label_edges") == 0) {
177 cout <<
"-label_edges " << endl;
180 else if (ST.
stringcmp(argv[i],
"-x_stretch") == 0) {
184 cout <<
"-x_stretch " <<
x_stretch << endl;
187 else if (ST.
stringcmp(argv[i],
"-y_stretch") == 0) {
191 cout <<
"-y_stretch " <<
y_stretch << endl;
194 else if (ST.
stringcmp(argv[i],
"-scale") == 0) {
198 cout <<
"-scale " <<
scale << endl;
201 else if (ST.
stringcmp(argv[i],
"-line_width") == 0) {
208 else if (ST.
stringcmp(argv[i],
"-rotated") == 0) {
211 cout <<
"-rotated " << endl;
214 else if (ST.
stringcmp(argv[i],
"-nodes_empty") == 0) {
217 cout <<
"-nodes_empty " << endl;
220 else if (ST.
stringcmp(argv[i],
"-select_layers") == 0) {
225 cout <<
"-select_layers ";
230 else if (ST.
stringcmp(argv[i],
"-paths_in_between") == 0) {
237 cout <<
"-paths_in_between " <<
layer1 <<
" " <<
node1
241 else if (ST.
stringcmp(argv[i],
"-end") == 0) {
243 cout <<
"-end" << endl;
248 cout <<
"layered_graph_draw_options::read_arguments "
249 "unrecognized option " << argv[i] << endl;
254 cout <<
"layered_graph_draw_options::read_arguments done" << endl;
272 cout <<
"xin, xout, yin, yout=" <<
xin <<
", " <<
xout <<
", " <<
yin <<
", " <<
yout << endl;
273 cout <<
"radius=" <<
rad << endl;
276 cout <<
"f_spanning_tree=" << endl;
279 cout <<
"f_circle" << endl;
282 cout <<
"f_corners" << endl;
285 cout <<
"f_embedded" << endl;
288 cout <<
"f_sideways" << endl;
291 cout <<
"f_show_level_info" << endl;
294 cout <<
"f_label_edges" << endl;
297 cout <<
"x_stretch=" <<
x_stretch << endl;
300 cout <<
"y_stretch=" <<
y_stretch << endl;
303 cout <<
"scale=" <<
scale << endl;
309 cout <<
"f_rotated" << endl;
312 cout <<
"f_nodes_empty" << endl;
318 cout <<
"layer_select=";
323 cout <<
"f_paths_in_between" << endl;
324 cout <<
"layer1=" <<
layer1 << endl;
325 cout <<
"node1=" <<
node1 << endl;
326 cout <<
"layer2=" <<
layer2 << endl;
327 cout <<
"node2=" <<
node2 << endl;
~layered_graph_draw_options()
void(* draw_ending_callback)(graph_theory::layered_graph *LG, mp_graphics *G, int x_max, int y_max, int f_rotated, int dx, int dy)
std::string select_layers
void(* draw_begining_callback)(graph_theory::layered_graph *LG, mp_graphics *G, int x_max, int y_max, int f_rotated, int dx, int dy)
int f_has_draw_begining_callback
void(* draw_vertex_callback)(graph_theory::layered_graph *LG, mp_graphics *G, int layer, int node, int x, int y, int dx, int dy)
int f_has_draw_ending_callback
int read_arguments(int argc, std::string *argv, int verbose_level)
layered_graph_draw_options()
int f_has_draw_vertex_callback
#define Int_vec_scan(A, B, C)
#define Int_vec_print(A, B, C)
the orbiter library for the classification of combinatorial objects