e, FileMode.Create, FileAccess.Write));
writer.WriteLine (y.Count.ToString () + "" + y [0]. Count.ToString ());
for (int i = 0; i
{
for (int j = 0; j
{
writer.Write (y [i] [j]. ToString () + "");
}
writer.WriteLine ();
}
writer.Close ();
}
public List > ReadData (string fileName)
{
List > y = new List > ();
int n, m;
reader = new StreamReader (new FileStream (fileName, FileMode.Open, FileAccess.Read));
while (! reader.EndOfStream)
{
char [] separator = {''};
string [] vals = reader.ReadLine (). Split (separator, StringSplitOptions.RemoveEmptyEntries);
n = Convert.ToInt32 (vals [0]);
m = Convert.ToInt32 (vals [1]);
for (int i = 0; i
{
List list = new List ();
vals = reader.ReadLine (). Split (separator, StringSplitOptions.RemoveEmptyEntries);
for (int j = 0; j
{
list.Add (Convert.ToInt32 (vals [j]));
}
y.Add (list);
}
}
reader.Close ();
return y;
}
}
public partial class SolutionsView: Form
{
public SolutionsView (List > list)
{
InitializeComponent ();
int n = list [0]. Count;
int m = list.Count;
dataGridView2.ColumnCount = n;
dataGridView2.RowCount = m;
for (int i = 0; i
{
for (int j = 0; j
dataGridView2 [j, i]. Value = list [i] [j];
}
}
}
partial class GraphView: Form
{
public GraphView ()
{
InitializeComponent ();
}
public Panel GetPanel ()
{
return panel1;