Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using asgl_dll;
- namespace asgl_ui
- {
- class UIDijkstra
- {
- private Graph<String, Arc<String>> graph_;
- private Dijkstra<String, Arc<String>> dp;
- private String source_;
- public UIDijkstra(Graph<String, Arc<String>> graph, String source_node)
- {
- graph_ = graph;
- source_ = source_node;
- dp = new Dijkstra<String, Arc<String>>(graph_);
- dp.initialize(source_);
- }
- public void Compute()
- {
- dp.compute();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement