24 #ifndef __SHORTEST_PATH_HPP__ 25 #define __SHORTEST_PATH_HPP__ 58 class shortestPathImpl;
59 std::unique_ptr<shortestPathImpl> impl;
69 enum class pathType : std::int8_t {S,N,SS,SN,NN,SSS,SSN,SNN,NNN,NONE,AMBIG};
72 const std::string &codon2,
77 typedef std::vector<std::string>::const_iterator const_iterator;
78 const_iterator
begin()
const;
79 const_iterator
end()
const;
83 const std::string &codon2,
86 std::pair<unsigned,shortestPath::pathType>
diffType(
const std::string &codon1,
87 const std::string &codon2,
90 std::tuple<shortestPath::pathType,shortestPath::pathType,shortestPath::pathType>
92 const std::string &codon2,
std::pair< unsigned, shortestPath::pathType > diffType(const std::string &codon1, const std::string &codon2, const Sequence::GeneticCodes &code=GeneticCodes::UNIVERSAL)
const_iterator begin() const
double path_distance() const
The namespace in which this library resides.
shortestPath(const std::string &codon1, const std::string &codon2, const Sequence::GeneticCodes &code=GeneticCodes::UNIVERSAL)
Calculate shortest path between 2 codons.
const_iterator end() const
std::pair< unsigned, unsigned > mutsShortestPath(const std::string &codon1, const std::string &codon2, const Sequence::GeneticCodes &code=GeneticCodes::UNIVERSAL)
std::tuple< shortestPath::pathType, shortestPath::pathType, shortestPath::pathType > diffTypeMulti(const std::string &codon1, const std::string &codon2, const Sequence::GeneticCodes &code=GeneticCodes::UNIVERSAL)
Definition of enumeration types.