how do I implement these methods in a Java Breadth first graph while using Queues?
An add method which adds a new vertex into the graph without any edges?
How can I return the Adjacency matrix?
if it contains a Triangle?
how do I implement these methods in a Java Breadth first graph while using Queues?
An add method which adds a new vertex into the graph without any edges?
How can I return the Adjacency matrix?
if it contains a Triangle?
Although I'm not sure what you're asking, you might want to take a look at this question and answer.
There you will find the description and implementation of a breadth-first search algorithm using Queue
in Java.