Struct forceatlas2::Settings[][src]

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

Fields

dimensions: usize

Number of spatial dimensions

dissuade_hubs: bool

Move hubs (high degree nodes) to the center

jitter_tolerance: Tka: 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.

strong_gravity: bool

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

Trait Implementations

impl<T: Clone + Coord> Clone for Settings<T>[src]

impl<T: Coord> Default for Settings<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Settings<T> where
    T: RefUnwindSafe

impl<T> Send for Settings<T> where
    T: Send

impl<T> Sync for Settings<T> where
    T: Sync

impl<T> Unpin for Settings<T> where
    T: Unpin

impl<T> UnwindSafe for Settings<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,