From 2a77c2d271184fd37f9a533fd708115abad0adb9 Mon Sep 17 00:00:00 2001 From: Holt59 Date: Sat, 10 Mar 2018 20:00:18 +0100 Subject: [PATCH] Add toString() for WWC input data. --- .../WeaklyConnectedComponentsData.java | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/main/org/insa/algo/weakconnectivity/WeaklyConnectedComponentsData.java b/src/main/org/insa/algo/weakconnectivity/WeaklyConnectedComponentsData.java index 7124782..bf54c92 100644 --- a/src/main/org/insa/algo/weakconnectivity/WeaklyConnectedComponentsData.java +++ b/src/main/org/insa/algo/weakconnectivity/WeaklyConnectedComponentsData.java @@ -5,12 +5,17 @@ import org.insa.graph.Graph; public class WeaklyConnectedComponentsData extends AbstractInputData { - /** - * - * @param graph - */ - public WeaklyConnectedComponentsData(Graph graph) { - super(graph); - } - + /** + * + * @param graph + */ + public WeaklyConnectedComponentsData(Graph graph) { + super(graph); + } + + @Override + public String toString() { + return "Weakly-connected components from #0."; + } + }