public void info(String name, int cost, int flow, int dist, boolean visited, List<String> adj, List<String> adjEnt) {
        txtInfoVertexName.setText(name);
        txtInfoCost.setText(String.valueOf(cost));
        txtInfoFlow.setText(String.valueOf(flow));
        txtInfoDist.setText(String.valueOf(dist));
        txtInfoVisited.setText(String.valueOf(visited));
        if (adj != null) {
            String adj_s = "";
            for (String a : adj) {
                adj_s += a + " ";
            }
            txtInfoAdj.setText(adj_s);
        }
        if (adjEnt != null) {
            String adj_ent = "";
            for (String a : adjEnt) {
                adj_ent += a + " ";
            }
            txtInfoAdjEntering.setText(adj_ent);
        }
    }