Changeset 34 for branches/localSpectral/src/data/GraphBuilder.java
- Timestamp:
- Oct 30, 2010, 8:39:22 PM (14 years ago)
- File:
-
- 1 edited
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.