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
Auto Trait Implementations
impl<T> RefUnwindSafe for Settings<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Settings<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V