|
|
@@ -76,4 +76,64 @@ public class Graph {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /*getter*/
|
|
|
+
|
|
|
+ public boolean isDirected() {
|
|
|
+ return isDirected;
|
|
|
+ }
|
|
|
+
|
|
|
+ public boolean isWeighted() {
|
|
|
+ return isWeighted;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getNodeNum() {
|
|
|
+ return nodeNum;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getEdgeNum() {
|
|
|
+ return edgeNum;
|
|
|
+ }
|
|
|
+
|
|
|
+ public ArrayList<String> getNodeList() {
|
|
|
+ return nodeList;
|
|
|
+ }
|
|
|
+
|
|
|
+ public ArrayList<ArrayList<Boolean>> getGraph() {
|
|
|
+ return graph;
|
|
|
+ }
|
|
|
+
|
|
|
+ public ArrayList<ArrayList<Double>> getWeight() {
|
|
|
+ return weight;
|
|
|
+ }
|
|
|
+
|
|
|
+ /*setter*/
|
|
|
+
|
|
|
+ public void setDirected(boolean directed) {
|
|
|
+ isDirected = directed;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setWeighted(boolean weighted) {
|
|
|
+ isWeighted = weighted;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setNodeNum(int nodeNum) {
|
|
|
+ this.nodeNum = nodeNum;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setEdgeNum(int edgeNum) {
|
|
|
+ this.edgeNum = edgeNum;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setNodeList(ArrayList<String> nodeList) {
|
|
|
+ this.nodeList = nodeList;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGraph(ArrayList<ArrayList<Boolean>> graph) {
|
|
|
+ this.graph = graph;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setWeight(ArrayList<ArrayList<Double>> weight) {
|
|
|
+ this.weight = weight;
|
|
|
+ }
|
|
|
}
|