Program.cs
Home
/
HyperGraph /
Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HyperGraph
{
class Program
{
static void Main(string[] args)
{
Matrix<int> m = new Matrix<int>(4,5);
List<int> ex = m[0];
List<int> ex2 = m[2, true];
List<int> ex3 = new List<int>(); ex3.Add(4); ex3.Add(5); ex3.Add(6); ex3.Add(7); ex3.Add(8);
m[3] = ex3;
List<int> ex4 = m[3];
System.IO.StreamReader input = new System.IO.StreamReader("D:\\input.txt");
System.IO.StreamWriter output = new System.IO.StreamWriter("D:\\output.txt");
Matrix<int> matrix = Matrix<int>.LoadFromStream(input, 6, 7);
Matrix<int>.UnloadToStream(matrix, output);
input.Close(); output.Close();
Console.ReadKey();
}
}
}