Index: branches/localSpectral/src/data/GraphBuilder.java
===================================================================
--- branches/localSpectral/src/data/GraphBuilder.java	(revision 32)
+++ branches/localSpectral/src/data/GraphBuilder.java	(revision 34)
@@ -4,4 +4,5 @@
 import clustering.Edge;
 import clustering.VertexString;
+import edu.uci.ics.jung.graph.DirectedSparseGraph;
 import edu.uci.ics.jung.graph.Graph;
 import edu.uci.ics.jung.graph.SparseGraph;
@@ -22,7 +23,10 @@
     Graph<String,Edge<String>> graph;
 
-    public GraphBuilder(){
-        graph = new SparseGraph<String, Edge<String>>();
+    public GraphBuilder(boolean directed){
+        if (directed)
+           graph = new DirectedSparseGraph<String, Edge<String>>();
 
+        else
+            graph = new SparseGraph<String, Edge<String>>();
     }
 
