Click here to Skip to main content
15,905,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
what referrence should i add and how cam i add them
Jow to make a adjacency matrix or list and if i got a lists of data how can i add them to adjacency matrix or list

Ps.i am very new to this if i make or ask anything stupid i am sorry for that

Thank you for all your reply
Posted
Comments
Kornfeld Eliyahu Peter 11-Feb-14 4:50am    
Have you done anything so far? Show some effort (code or searching)! As is it ain't a question...
Real_Criffer 11-Feb-14 5:53am    
well i try to make a program that calculate Critical path at first i just want to calculate and show it in my program. and i store everything in lists like this

for (int X = 0; X <= dataGridView1.RowCount - 1; X++) // เก็บ ชื่อกิจกรรม ไว้ใน list
{

Proj_name = Convert.ToString(dataGridView1.Rows[X].Cells[0].Value);

Proj_name_Values.Add(Convert.ToString(Proj_name));
}
for (int X = 0; X <= dataGridView1.RowCount - 1; X++) // เก็บ duration ไว้ใน list
{

Duration = Convert.ToInt32(dataGridView1.Rows[X].Cells[1].Value);

Duration_Values.Add(Convert.ToInt32(Duration));
}

for (int X = 0; X <= dataGridView1.RowCount - 1; X++) // เก็บค่า predecessor ไว้ใน list
{

Predecessor = Convert.ToString(dataGridView1.Rows[X].Cells[2].Value);

String[] Word = Predecessor.Split(' ');

Predecessor_Number.Add(Convert.ToString(Word.Length));

Predecessor_Values.Add(Convert.ToString(Predecessor));

Predecessor_Value_FindLF.Add(Convert.ToString(Predecessor));
}

but now i want to use this data to make a graph with adjacency list or matrix . i don't know any thing about it so i have no clue what to do next can you please help!
Kornfeld Eliyahu Peter 11-Feb-14 6:05am    
So, why not Google a bit about it?
Real_Criffer 11-Feb-14 6:20am    
i already google about it. i try to understand about adj list like 3 day but i have no clue

how to move the data in list i have to the linked list as a node


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900