Пример #1
0
 private IncedenceMatrix[] InitIncedenceMatrixes()
 {
     if (_standarts.Length > 0)
     {
         var incedenceMatrices = new IncedenceMatrix[_standarts[0].IdealStandart.Height];
         for (int i = 0; i < incedenceMatrices.Length; i++)
         {
             incedenceMatrices[i] = InitIncedenceMatrix(i);
         }
         return incedenceMatrices;
     }
     return new IncedenceMatrix[0];
 }
Пример #2
0
 private IncedenceMatrix InitIncedenceMatrix(int rowNumber)
 {
     var incedenceMatrix = new IncedenceMatrix(_standarts.Length,
         _standarts[0].IdealStandart.Width);
     bool[,] martix = incedenceMatrix._matrix;
     for (int i = 0; i < incedenceMatrix.Height; i++)
     {
         int[] realises = _standarts[i].IdealStandart.IncidenceMatrix[rowNumber];
         foreach (int realise in realises)
         {
             martix[i, realise] = true;
         }
     }
     return incedenceMatrix;
 }