Guest User

Untitled

a guest
Mar 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. graph.AddConnection();
  2.  
  3. ArrayList stationFirst = new ArrayList();
  4. ArrayList stationDest = new ArrayList();
  5. ArrayList distanceList = new ArrayList();
  6.  
  7. foreach(string item in stationFirst)
  8. {
  9.  
  10. foreach(string item1 in stationDest)
  11. {
  12. foreach(int item2 in distanceList)
  13. {
  14. // MessageBox.Show(item + " " + item1 + " " + item2);
  15. graph.AddConnection(item, item1, item2, true);
  16. }
  17.  
  18. }
  19. }
  20.  
  21. var newList = new ArrayList();
  22. for (int i = 0; i < stationFirst.Count; i++)
  23. {
  24. newList.Add(stationFirst[i]);
  25. newList.Add(stationDest[i]);
  26. newList.Add(distanceList[i]);
  27. }
Add Comment
Please, Sign In to add comment