public IDepthFirstSearch <ExchangeRate> Create(IEnumerable <ExchangeRate> rates) { IAdjacencyList <ExchangeRate> adjlist = _AdjacencyListFactory.CreateList(rates); IDepthFirstSearch <ExchangeRate> DFS = new DepthFirstSearch(adjlist); return(DFS); }
public DijkstraAlgorithm(IAdjacencyList graph) { _graph = graph; }
public DepthFirstSearch(IAdjacencyList graph) { _graph = graph; }
public BreadthFirstSearch(IAdjacencyList graph) { _graph = graph; }
public DepthFirstSearch(IAdjacencyList <ExchangeRate> AdjList) { _Parent = new Dictionary <string, Register>(); _AdjList = AdjList ?? throw new ArgumentNullException(); }