Esempio n. 1
0
    private void ProcessaAEstrela()
    {
        _startingPoint = _graph.PegarVertices().Single(node => node.type == NodeType.InitialConn);
        var fim = _graph.PegarVertices().Single(node => node.type == NodeType.LocalMainFrame);

        _graph.AEstrela(_startingPoint, fim, Heuristica, (caminho, pontuacao) =>
        {
            _path       = caminho;
            _aStarScore = pontuacao;
        });
    }