Ignore:
Timestamp:
Oct 30, 2010, 8:39:22 PM (14 years ago)
Author:
toshi
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/localSpectral/src/data/GraphBuilder.java

    r32 r34  
    44import clustering.Edge;
    55import clustering.VertexString;
     6import edu.uci.ics.jung.graph.DirectedSparseGraph;
    67import edu.uci.ics.jung.graph.Graph;
    78import edu.uci.ics.jung.graph.SparseGraph;
     
    2223    Graph<String,Edge<String>> graph;
    2324
    24     public GraphBuilder(){
    25         graph = new SparseGraph<String, Edge<String>>();
     25    public GraphBuilder(boolean directed){
     26        if (directed)
     27           graph = new DirectedSparseGraph<String, Edge<String>>();
    2628
     29        else
     30            graph = new SparseGraph<String, Edge<String>>();
    2731    }
    2832
Note: See TracChangeset for help on using the changeset viewer.