public bool AddConnection(int from, int to, double weight)
 {
     if (CNeuroNetWrapperFunctions.__FindConnection(_cnet, from, to) == IntPtr.Zero)
     {
         CNeuroNetWrapperFunctions.__AddConnection(_cnet, from, to, weight);
         return(true);
     }
     return(false);
 }
 public bool Contains(Connection item)
 {
     return(CNeuroNetWrapperFunctions.__FindConnection(net, item.From, item.To) != IntPtr.Zero);
 }