Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- graph.AddConnection();
- ArrayList stationFirst = new ArrayList();
- ArrayList stationDest = new ArrayList();
- ArrayList distanceList = new ArrayList();
- foreach(string item in stationFirst)
- {
- foreach(string item1 in stationDest)
- {
- foreach(int item2 in distanceList)
- {
- // MessageBox.Show(item + " " + item1 + " " + item2);
- graph.AddConnection(item, item1, item2, true);
- }
- }
- }
- var newList = new ArrayList();
- for (int i = 0; i < stationFirst.Count; i++)
- {
- newList.Add(stationFirst[i]);
- newList.Add(stationDest[i]);
- newList.Add(distanceList[i]);
- }
Add Comment
Please, Sign In to add comment