pub struct GraphProperties {
pub is_symmetric: bool,
pub is_multigraph: bool,
}Expand description
Properties that describe a graph’s structure.
Fields§
§is_symmetric: bool§is_multigraph: boolImplementations§
Source§impl GraphProperties
impl GraphProperties
Sourcepub fn directed() -> Self
pub fn directed() -> Self
A directed simple graph (is_symmetric: false, is_multigraph: false).
This is the most common configuration and matches Default.
Sourcepub fn undirected() -> Self
pub fn undirected() -> Self
An undirected (symmetric) simple graph (is_symmetric: true, is_multigraph: false).
Trait Implementations§
Source§impl Clone for GraphProperties
impl Clone for GraphProperties
impl Copy for GraphProperties
Source§impl Debug for GraphProperties
impl Debug for GraphProperties
Source§impl Default for GraphProperties
impl Default for GraphProperties
Source§fn default() -> Self
fn default() -> Self
Returns a directed simple graph (same as GraphProperties::directed()).
Source§impl Display for GraphProperties
impl Display for GraphProperties
impl Eq for GraphProperties
Source§impl From<GraphProperties> for cugraph_graph_properties_t
impl From<GraphProperties> for cugraph_graph_properties_t
Source§fn from(props: GraphProperties) -> Self
fn from(props: GraphProperties) -> Self
Converts to this type from the input type.
Source§impl Hash for GraphProperties
impl Hash for GraphProperties
Source§impl PartialEq for GraphProperties
impl PartialEq for GraphProperties
impl StructuralPartialEq for GraphProperties
Auto Trait Implementations§
impl Freeze for GraphProperties
impl RefUnwindSafe for GraphProperties
impl Send for GraphProperties
impl Sync for GraphProperties
impl Unpin for GraphProperties
impl UnsafeUnpin for GraphProperties
impl UnwindSafe for GraphProperties
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.