/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package graphalgorithms;

/**
 *
 * @author piyush
 */
public class Graph {
    private Vertex [] vertices;
    private Edge [] edges;
    
    Graph(Vertex []vertices, Edge []edges){
        
        this.vertices=vertices;
        this.edges=edges;
        
    }
    
    
}

@@ -233,16 +233,76 @@
 ush%0A */%0A
+import java.util.ArrayList;%0Aimport java.util.List;%0A        %0A
 public c
@@ -326,25 +326,28 @@
 private 
+List%3C
 Vertex
- %5B%5D
+%3E
  vertice
@@ -343,24 +343,43 @@
 ex%3E vertices
+= new ArrayList%3C%3E()
 ;%0A    privat
@@ -384,21 +384,43 @@
 ate 
+List%3C
 Edge
- %5B%5D
+%3E
  edges
+= new ArrayList%3C%3E()
 ;%0A  
@@ -436,17 +436,27 @@
 aph(
+ArrayList %3C
 Vertex
+%3E
  
-%5B%5D
 vert
@@ -465,23 +465,33 @@
 es, 
+ArrayList %3C
 Edge
+%3E
  
-%5B%5D
 edges)%7B%0A
     
@@ -486,25 +486,16 @@
 edges)%7B%0A
-        %0A
         
@@ -552,23 +552,9 @@
     
-    %0A    %7D%0A    
+%7D
 %0A   

Update Graph.java