pub struct TypedGraph {
pub graph: Graph,
pub types: Vec<i64>,
}Expand description
A random graph whose vertices carry a type (category), as produced by
the type-based games (Graph::preference_game,
Graph::callaway_traits_game, Graph::establishment_game).
Fields§
§graph: GraphThe generated graph.
types: Vec<i64>types[v] is the type of vertex v, numbered from zero.
Trait Implementations§
Source§impl Clone for TypedGraph
impl Clone for TypedGraph
Source§fn clone(&self) -> TypedGraph
fn clone(&self) -> TypedGraph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypedGraph
impl Debug for TypedGraph
Source§impl PartialEq for TypedGraph
impl PartialEq for TypedGraph
Source§fn eq(&self, other: &TypedGraph) -> bool
fn eq(&self, other: &TypedGraph) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TypedGraph
Auto Trait Implementations§
impl !Sync for TypedGraph
impl Freeze for TypedGraph
impl RefUnwindSafe for TypedGraph
impl Send for TypedGraph
impl Unpin for TypedGraph
impl UnsafeUnpin for TypedGraph
impl UnwindSafe for TypedGraph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more