Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using asgl_dll;
  6.  
  7. namespace asgl_ui
  8. {
  9. class UIDijkstra
  10. {
  11. private Graph<String, Arc<String>> graph_;
  12. private Dijkstra<String, Arc<String>> dp;
  13. private String source_;
  14.  
  15. public UIDijkstra(Graph<String, Arc<String>> graph, String source_node)
  16. {
  17. graph_ = graph;
  18. source_ = source_node;
  19. dp = new Dijkstra<String, Arc<String>>(graph_);
  20. dp.initialize(source_);
  21. }
  22.  
  23. public void Compute()
  24. {
  25. dp.compute();
  26. }
  27.  
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement