CycloBranch
cDeNovoGraphNode.h File Reference

The representation of a node in the de novo graph. More...

#include <unordered_set>
#include <vector>
#include <map>
#include <fstream>
#include "core/cFragmentIons.h"

Go to the source code of this file.

Classes

struct  nodeEdge
 An auxiliary structure to store relationship between a node and an edge. More...
 
struct  cEdge
 The structure representing an outgoing edge from a node. More...
 
struct  hash_cEdge
 The structure defining a hash function of cEdge. More...
 
class  cDeNovoGraphNode
 The class representing a node in the de novo graph. More...
 

Functions

bool operator== (nodeEdge const &a, nodeEdge const &b)
 Overloaded operator ==. More...
 
bool operator== (cEdge const &a, cEdge const &b)
 Overloaded operator ==. More...
 
bool compareEdgesByPPMError (const cEdge &a, const cEdge &b)
 Compare edges by ppm error. More...
 
bool compareEdgesByTargetNodeIntensityDesc (const cEdge &a, const cEdge &b)
 Compare edges by target node intensity. More...
 

Detailed Description

The representation of a node in the de novo graph.

Function Documentation

◆ compareEdgesByPPMError()

bool compareEdgesByPPMError ( const cEdge a,
const cEdge b 
)

Compare edges by ppm error.

Parameters
afirst edge
bsecond edge
Return values
booltrue when a has smaller ppm error than b

◆ compareEdgesByTargetNodeIntensityDesc()

bool compareEdgesByTargetNodeIntensityDesc ( const cEdge a,
const cEdge b 
)

Compare edges by target node intensity.

Parameters
afirst edge
bsecond edge
Return values
booltrue when the target node of a has bigger intensity than the target node of b

◆ operator==() [1/2]

bool operator== ( cEdge const &  a,
cEdge const &  b 
)

Overloaded operator ==.

Parameters
afirst edge
bsecond edge
Return values
booltrue when edges are equal

◆ operator==() [2/2]

bool operator== ( nodeEdge const &  a,
nodeEdge const &  b 
)

Overloaded operator ==.

Parameters
afirst nodeEdge
bsecond nodeEdge
Return values
booltrue when nodeEdges are equal