Exemple #1
0
 public double this[int index] {
     get {
         if (index < 0 || index > Length)
         {
             throw new IndexOutOfRangeException("Trying to get index(" + index + ") of vector(" + Length + ").");
         }
         return(DllImporter.igraph_vector_e(vector, index));
     }
     set {
         if (index < 0 || index > Length)
         {
             throw new IndexOutOfRangeException("Trying to set index(" + index + ") of vector(" + Length + ").");
         }
         DllImporter.igraph_vector_set(vector, index, value);
     }
 }