Orbiter 2022
Combinatorial Objects
graph_classification_activity.cpp
Go to the documentation of this file.
1/*
2 * graph_classification_activity.cpp
3 *
4 * Created on: Apr 12, 2021
5 * Author: betten
6 */
7
8
9
10
11#include "orbiter.h"
12
13using namespace std;
14
15namespace orbiter {
16namespace layer5_applications {
17namespace apps_graph_theory {
18
19
21{
22 Descr = NULL;
23 GC = NULL;
24}
25
27{
28}
29
30
33 int verbose_level)
34{
35 int f_v = (verbose_level >= 1);
36
37 if (f_v) {
38 cout << "graph_classification_activity::init" << endl;
39 }
40
43
44
45 if (f_v) {
46 cout << "graph_classification_activity::init done" << endl;
47 }
48}
49
51{
52 int f_v = (verbose_level >= 1);
53
54 if (f_v) {
55 cout << "graph_classification_activity::perform_activity" << endl;
56 }
57
58
60
61 if (!Descr->f_draw_options) {
62 cout << "please specify -draw_options" << endl;
63 exit(1);
64 }
66 GC->Descr->Control->depth, GC->Descr->n /* data1 */,
69 verbose_level - 3);
70 }
71
72 else if (Descr->f_draw_graphs) {
73
74 int level;
75
76 if (!Descr->f_draw_options) {
77 cout << "please specify -draw_options" << endl;
78 exit(1);
79 }
80 for (level = 0; level <= GC->Descr->Control->depth; level++) {
81 GC->draw_graphs(level, //Gen.Descr->Control->scale,
83 verbose_level);
84 }
85 }
86
87 else if (Descr->f_draw_graphs_at_level) {
88
89 if (!Descr->f_draw_options) {
90 cout << "please specify -draw_options" << endl;
91 exit(1);
92 }
95 verbose_level);
96 }
97
98
99
100 if (f_v) {
101 cout << "graph_classification_activity::perform_activity done" << endl;
102 }
103}
104
105
106}}}
107
void draw_level_graph(std::string &fname_base, int depth, int data, int level, graphics::layered_graph_draw_options *LG_Draw_options, int verbose_level)
void init(graph_classification_activity_description *Descr, graph_classify *GC, int verbose_level)
poset_classification::poset_classification_control * Control
Definition: graph_theory.h:331
void draw_graphs(int level, graphics::layered_graph_draw_options *draw_options, int verbose_level)
poset_classification::poset_classification * gen
Definition: graph_theory.h:375
the orbiter library for the classification of combinatorial objects