pub struct Settings<N, E, Ty = Undirected> {
    pub sim_parameters: SimulationParameters<N, E, Ty>,
    pub iterations: usize,
    pub dt: f32,
    pub node_size: u32,
    pub node_color: RGBAColor,
    pub edge_size: u32,
    pub edge_color: RGBAColor,
    pub background_color: RGBAColor,
    pub print_progress: bool,
    pub text_style: Option<TextStyle<'static>>,
}
Expand description

Parameters for drawing the SVG image.

Fields

sim_parameters: SimulationParameters<N, E, Ty>

Simulation Parameters

iterations: usize

Number of times to run the simulation

dt: f32

“Granularity of simulation updates”

node_size: u32

The radius of the nodes

node_color: RGBAColor

RGBA color of the nodes

edge_size: u32

Width of the edge lines

edge_color: RGBAColor

RGBA color of the edge lines

background_color: RGBAColor

RGBA background color

print_progress: bool

If true, the simulation will be printed on each

text_style: Option<TextStyle<'static>>

If supplied, the names of nodes will be written

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.