struct seams::ChordlessCycles

Overview

Chordless cycles of one length. More…

#include <include/seams.hpp>
 
struct ChordlessCycles {
    // fields
 
    int size = 0;
    std::vector<int> atoms;
    std::vector<int> per_atom;
 
    // methods
 
    std::size_t count() const;
    std::vector<int> cycle(std::size_t index) const;
};

Detailed Documentation

Chordless cycles of one length.

atoms holds count() rows of size atom indices, in the order seams_rings_chordless writes them. per_atom is the number of cycles through each atom.

Fields

int size = 0

Cycle length.

std::vector<int> atoms

count() rows of size indices.

std::vector<int> per_atom

Cycles through each atom.

Methods

std::size_t count() const

Number of cycles.

std::vector<int> cycle(std::size_t index) const

Atom indices of one cycle.