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

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