package util;
import core.Graphs.Graph;
/**
* Nothing software.
*/
public class NotConnectedGraphGenerator implements GraphGenerator {
@Override
public Object generate(int numberOfNodes) {
int[][] adjacencyMatrix = new int[numberOfNodes][numberOfNodes];
for (int i = 0; i < numberOfNodes; i++) {
for (int j = 0; j < numberOfNodes; j++) {
adjacencyMatrix[i][j] = 0;
}
adjacencyMatrix[i][i] = 0;
}
return new Graph(adjacencyMatrix);
}
}