#breadth first search

1 messages · Page 1 of 1 (latest)

gentle stone
#

Anyone know how to do BFS in java when my public class code is

    public boolean isConnectedWithChargingStations(Vertex startVertex, Vertex endVertex) {
        // Sanity check
        if (startVertex.getIndex() == endVertex.getIndex()) {
            return true;
        }
paper bayBOT
#

This post has been reserved for your question.

Hey @gentle stone! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.