Struct forceatlas2::Settings[][src]

pub struct Settings<T: Coord> {
    pub chunk_size: Option<usize>,
    pub dimensions: usize,
    pub dissuade_hubs: bool,
    pub ka: T,
    pub kg: T,
    pub kr: T,
    pub lin_log: bool,
    pub prevent_overlapping: Option<(T, T)>,
    pub speed: T,
    pub strong_gravity: bool,
}

Fields

chunk_size: Option<usize>

Number of nodes computed by each thread

Only used in repulsion computation. Set to None to turn off parallelization. This number should be big enough to minimize thread management, but small enough to maximize concurrency.

Requires T: Send + Sync

dimensions: usize

Number of spatial dimensions

dissuade_hubs: bool

Move hubs (high degree nodes) to the center

ka: T

Attraction coefficient

kg: T

Gravity coefficient

kr: T

Repulsion coefficient

lin_log: bool

Logarithmic attraction

prevent_overlapping: Option<(T, T)>

Prevent node overlapping for a prettier graph (node_size, kr_prime).

node_size is the radius around a node where the repulsion coefficient is kr_prime. kr_prime is arbitrarily set to 100.0 in Gephi implementation.

speed: T

Speed factor

strong_gravity: bool

Gravity does not decrease with distance, resulting in a more compact graph.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.