pub struct HypergraphProjectionDefinition {
pub name: String,
pub relation_types: BTreeSet<RelationTypeId>,
pub source_roles: BTreeSet<RoleId>,
pub target_roles: BTreeSet<RoleId>,
}Expand description
Hypergraph projection definition.
Hypergraph projections materialize many-participant directed relations as BCSR-style relation-major and vertex-major arrays.
§Performance
Cloning is O(r + s + t) for relation type and role set sizes plus the
name length.
Fields§
§name: StringUnique projection name.
relation_types: BTreeSet<RelationTypeId>Relation types visible as hyperedges.
source_roles: BTreeSet<RoleId>Roles treated as source-side participants.
target_roles: BTreeSet<RoleId>Roles treated as target-side participants.
Trait Implementations§
Source§impl Clone for HypergraphProjectionDefinition
impl Clone for HypergraphProjectionDefinition
Source§fn clone(&self) -> HypergraphProjectionDefinition
fn clone(&self) -> HypergraphProjectionDefinition
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<'de> Deserialize<'de> for HypergraphProjectionDefinition
impl<'de> Deserialize<'de> for HypergraphProjectionDefinition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HypergraphProjectionDefinition
impl PartialEq for HypergraphProjectionDefinition
Source§fn eq(&self, other: &HypergraphProjectionDefinition) -> bool
fn eq(&self, other: &HypergraphProjectionDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HypergraphProjectionDefinition
impl StructuralPartialEq for HypergraphProjectionDefinition
Auto Trait Implementations§
impl Freeze for HypergraphProjectionDefinition
impl RefUnwindSafe for HypergraphProjectionDefinition
impl Send for HypergraphProjectionDefinition
impl Sync for HypergraphProjectionDefinition
impl Unpin for HypergraphProjectionDefinition
impl UnsafeUnpin for HypergraphProjectionDefinition
impl UnwindSafe for HypergraphProjectionDefinition
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