Clean code.

This commit is contained in:
Holt59
2018-03-10 20:45:55 +01:00
parent 094a2331af
commit 23341f1499
3 changed files with 30 additions and 25 deletions

View File

@@ -17,7 +17,7 @@ public class WeaklyConnectedComponentsAlgorithm
extends AbstractAlgorithm<WeaklyConnectedComponentObserver> {
/**
* @param data
* @param data Input data for this algorithm.
*/
public WeaklyConnectedComponentsAlgorithm(WeaklyConnectedComponentsData data) {
super(data);
@@ -69,7 +69,7 @@ public class WeaklyConnectedComponentsAlgorithm
/**
* @return An adjacency list for the undirected graph equivalent to the stored
* graph.
* graph.
*/
protected ArrayList<HashSet<Integer>> createUndirectedGraph() {
int nNodes = getInputData().getGraph().getNodes().size();

View File

@@ -6,8 +6,7 @@ import org.insa.graph.Graph;
public class WeaklyConnectedComponentsData extends AbstractInputData {
/**
*
* @param graph
* @param graph Graph for which components should be retrieved.
*/
public WeaklyConnectedComponentsData(Graph graph) {
super(graph);