package me.teaisaweso.shared;

import java.util.Collections;
import java.util.List;

public class Graph {
	
	private List<Edge> mEdges;
	
	private List<Vertex> mVertices;
	
	public Graph(List<Edge> edges, List<Vertex> vertices) {
		mEdges = edges;
		mVertices = vertices;
	}
	
	/**
	 * the edges in this graph
	 * @return the edges in this graph
	 */
	public List<Edge> getEdges() {
		return Collections.unmodifiableList(mEdges);
	}
	
	/**
	 * the vertices in this graph
	 * @return the vertices in this graph
	 */
	public List<Vertex> getVertices() {
		return Collections.unmodifiableList(mVertices);
	}
	
}

@@ -99,18 +99,17 @@
 Graph %7B%0A
-%09
 %0A
+
 %09private
@@ -128,18 +128,17 @@
 mEdges;%0A
-%09
 %0A
+
 %09private
@@ -162,18 +162,17 @@
 rtices;%0A
-%09
 %0A
+
 %09public 
@@ -261,26 +261,25 @@
 ertices;%0A%09%7D%0A
-%09
 %0A
+
 %09/**%0A%09 * the
@@ -291,32 +291,37 @@
 s in this graph%0A
+%09 * %0A
 %09 * @return the 
@@ -427,18 +427,17 @@
 es);%0A%09%7D%0A
-%09
 %0A
+
 %09/**%0A%09 *
@@ -460,24 +460,29 @@
  this graph%0A
+%09 * %0A
 %09 * @return 
@@ -603,12 +603,11 @@
 es);%0A%09%7D%0A
-%09
 %0A%7D%0A

format graph.java