1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#[derive(Debug, Clone, PartialEq)]
pub struct DrawingConfig {
pub vertical: bool,
pub size: Option<(f32, f32)>,
pub title: String,
pub portrait: bool,
pub ranksep: Option<f32>,
pub nodesep: Option<f32>,
pub fontsize: u32,
pub acceptor: bool,
pub show_weight_one: bool,
pub print_weight: bool,
}
impl Default for DrawingConfig {
fn default() -> Self {
Self {
vertical: false,
size: None,
title: "".to_string(),
portrait: false,
ranksep: None,
nodesep: None,
fontsize: 14,
acceptor: false,
show_weight_one: true,
print_weight: true,
}
}
}