Changeset 34 for branches/localSpectral/src/data
- Timestamp:
 - Oct 30, 2010, 8:39:22 PM (15 years ago)
 - File:
 - 
          
- 1 edited
 
- 
          branches/localSpectral/src/data/GraphBuilder.java (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
branches/localSpectral/src/data/GraphBuilder.java
r32 r34 4 4 import clustering.Edge; 5 5 import clustering.VertexString; 6 import edu.uci.ics.jung.graph.DirectedSparseGraph; 6 7 import edu.uci.ics.jung.graph.Graph; 7 8 import edu.uci.ics.jung.graph.SparseGraph; … … 22 23 Graph<String,Edge<String>> graph; 23 24 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>>(); 26 28 29 else 30 graph = new SparseGraph<String, Edge<String>>(); 27 31 } 28 32  
Note: See TracChangeset
          for help on using the changeset viewer.
      ![(please configure the [header_logo] section in trac.ini)](/p/clust/chrome/site/your_project_logo.png)