Exemple #1
0
        public IDepthFirstSearch <ExchangeRate> Create(IEnumerable <ExchangeRate> rates)
        {
            IAdjacencyList <ExchangeRate>    adjlist = _AdjacencyListFactory.CreateList(rates);
            IDepthFirstSearch <ExchangeRate> DFS     = new DepthFirstSearch(adjlist);

            return(DFS);
        }
Exemple #2
0
 public DijkstraAlgorithm(IAdjacencyList graph)
 {
     _graph = graph;
 }
Exemple #3
0
 public DepthFirstSearch(IAdjacencyList graph)
 {
     _graph = graph;
 }
Exemple #4
0
 public BreadthFirstSearch(IAdjacencyList graph)
 {
     _graph = graph;
 }
Exemple #5
0
 public DepthFirstSearch(IAdjacencyList <ExchangeRate> AdjList)
 {
     _Parent  = new Dictionary <string, Register>();
     _AdjList = AdjList ?? throw new ArgumentNullException();
 }