public AssociationsResult(HashSet <MSGF> startNodes, MsgfGraph msgfGraph, uint targetDistance = 3)
 {
     StartNodes     = startNodes;
     MsgfGraph      = msgfGraph;
     TargetDistance = targetDistance;
     TotalUpdates   = 0;
     foreach (var node in MsgfGraph.GetAllNodes())
     {
         NodesProbability.Add(node, 0);
     }
 }
Beispiel #2
0
        public MsgfGraph GetDeepCopy()
        {
            MsgfGraph ret = new MsgfGraph();

            foreach (var nodeEdgese in NodeDictionary)
            {
                ret.AddNode(nodeEdgese.Key);
            }
            foreach (var u in EdgeDictionary)
            {
                ret.SetEdge(u.Key.NodeFrom, u.Key.NodeTo, u.Value);
            }
            return(ret);
        }