Type Definition net_ensembles::sw_graph::SwGraph [−][src]
pub type SwGraph<T> = GenericGraph<T, SwContainer<T>>;
Expand description
specific GenericGraph
used for small-world ensemble
Implementations
Reset small-world edge to its root state
- panics if index out of bounds
- in debug: panics if
index0 == index1
Rewire edges
- rewire edge
(index0, index1)
to(index0, index2)
panics
- if indices are out of bounds
- in debug: panics if
index0 == index2
- edge
(index0, index1)
has to be rooted atindex0
, else will panic in debug mode
How many nodes have long ranging edges?
- counts how many nodes have long ranging edges
- A long ranging edge is defined as an edge, where is_at_root returns true, i.e., which is not in ist original ring configuration
Fraction of nodes which have long ranging edges
- A long ranging edge is defined as an edge, where is_at_root returns true, i.e., which is not in ist original ring configuration
How many long ranging edges are there in the Graph?
- A long ranging edge is defined as an edge, where is_at_root returns true, i.e., which is not in ist original ring configuration
Fraction of long ranging edges in the Graph?
- A long ranging edge is defined as an edge, where is_at_root returns false, i.e., which is not in ist original ring configuration
- this is: #longranging/#total