/// <summary> /// Initializes a new instance of the <see cref="FlipScoringGraphEdge" /> /// with initialized data. /// </summary> /// <param name="prevNodeIndex">The source node index.</param> /// <param name="sinkNodeIndex">The sink node index.</param> /// <param name="weight">The edge weight.</param> /// <param name="label">The amino acid that that the edge corresponds to.</param> /// <param name="scorer">The FLIP scoring model.</param> public FlipScoringGraphEdge( int prevNodeIndex, int sinkNodeIndex, double weight, AminoAcid label, FlipScorer <DeconvolutedSpectrum> scorer) { this.PrevNodeIndex = prevNodeIndex; this.SinkNodeIndex = sinkNodeIndex; this.Weight = weight; this.Label = label; this.scorer = scorer; }
/// <summary> /// Initializes a new instance of the <see cref="FlipScoringGraphEdge" /> /// with uninitialized data. /// </summary> /// <param name="scorer">The FLIP scoring model.</param> public FlipScoringGraphEdge(FlipScorer <DeconvolutedSpectrum> scorer) : this(0, 0, 0, null, scorer) { }