dugong_graphlib/graph/options.rs
1//! Graph configuration options.
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
6pub struct GraphOptions {
7 pub multigraph: bool,
8 pub compound: bool,
9 pub directed: bool,
10}
11
12impl Default for GraphOptions {
13 fn default() -> Self {
14 Self {
15 multigraph: false,
16 compound: false,
17 directed: true,
18 }
19 }
20}