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 strong_gravity: bool, }
Fields
chunk_size: Option<usize>
Expand description
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
Expand description
Number of spatial dimensions
dissuade_hubs: bool
Expand description
Move hubs (high degree nodes) to the center
ka: T
Expand description
Attraction coefficient
kg: T
Expand description
Gravity coefficient
kr: T
Expand description
Repulsion coefficient
lin_log: bool
Expand description
Logarithmic attraction
prevent_overlapping: Option<(T, T)>
Expand description
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.
strong_gravity: bool
Expand description
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,
T: RefUnwindSafe,
impl<T> Send for Settings<T> where
T: Send,
T: Send,
impl<T> Sync for Settings<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Settings<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Settings<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,