[][src]Module net_ensembles::dot_constants

constants for dot options

Example

use net_ensembles::{*, rand::SeedableRng, dot_constants::*};
use rand_pcg::Pcg64;

let rng = Pcg64::seed_from_u64(0);
let ensemble = ErEnsembleM::<EmptyNode, _>::new(10, 20, rng);

// create dot
let dot = ensemble.graph().to_dot_with_labels_from_contained(
    dot_options!(TRANSPARENT_BG, NO_OVERLAP, SIZE_A4, RATIO_FILL),
    |_, index|
    {
        format!("Hey, I am at index: {}", index)
    }
);

println!("{}", dot);

Constants

EXAMPLE_DOT_OPTIONS

  • Example options. You are free to use your own. Search for graphviz.
  • MARGIN_0

  • do not use margin
  • NO_OVERLAP

  • no overlapping nodes
  • RATIO_FILL

  • dot option: ratio="fill"
  • SIZE_A4

  • Din A4 size
  • SPLINES

  • activate splines
  • TRANSPARENT_BG

  • use transparent background