TCPSPSuite
src
visualization
dotfile.hpp
1
#ifndef DOTFILE_H
2
#define DOTFILE_H
3
4
#include <iostream>
// for ostringstream
5
#include <string>
// for string
6
#include <sstream>
7
8
class
Instance
;
9
10
class
DotfileExporter {
11
public
:
12
DotfileExporter(
const
Instance
& instance);
13
14
void
write(std::string filename);
15
16
private
:
17
void
add_header();
18
void
add_footer();
19
void
add_job(
unsigned
int
job_id);
20
void
add_edge(
unsigned
int
job_from,
unsigned
int
job_to);
21
void
prepare();
22
23
std::ostringstream buf;
24
25
const
Instance
&instance;
26
};
27
28
#endif
Instance
a TCPSP instance
Definition:
instance.hpp:24
Generated by
1.8.17