pub struct Atlas { /* private fields */ }Expand description
Atlas of Resonance Classes
A 96-vertex graph with canonical labels and mirror symmetry.
Implementations§
Source§impl Atlas
impl Atlas
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct the Atlas from first principles
Generates all 96 canonical labels and builds the graph structure.
Sourcepub const fn num_vertices(&self) -> usize
pub const fn num_vertices(&self) -> usize
Get number of vertices
Sourcepub fn is_adjacent(&self, v1: usize, v2: usize) -> bool
pub fn is_adjacent(&self, v1: usize, v2: usize) -> bool
Check if two vertices are adjacent
Sourcepub fn mirror_pair(&self, vertex: usize) -> usize
pub fn mirror_pair(&self, vertex: usize) -> usize
Get mirror pair of a vertex
Sourcepub fn is_mirror_pair(&self, v1: usize, v2: usize) -> bool
pub fn is_mirror_pair(&self, v1: usize, v2: usize) -> bool
Check if two vertices are mirror pairs
Sourcepub fn unity_positions(&self) -> &[usize]
pub fn unity_positions(&self) -> &[usize]
Get unity positions (2 vertices)
Sourcepub fn find_vertex(&self, label: &Label) -> Option<usize>
pub fn find_vertex(&self, label: &Label) -> Option<usize>
Find vertex index for a given label
Trait Implementations§
Source§impl ResGraphObject for Atlas
impl ResGraphObject for Atlas
Source§fn num_vertices(&self) -> usize
fn num_vertices(&self) -> usize
Get the number of vertices (or roots) in this object Read more
Source§fn object_name(&self) -> &'static str
fn object_name(&self) -> &'static str
Get a human-readable name for this object
Source§fn has_adjacency(&self) -> bool
fn has_adjacency(&self) -> bool
Check if this object has explicit adjacency information Read more
Auto Trait Implementations§
impl Freeze for Atlas
impl RefUnwindSafe for Atlas
impl Send for Atlas
impl Sync for Atlas
impl Unpin for Atlas
impl UnwindSafe for Atlas
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