- Timestamp:
- Oct 30, 2010, 8:39:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/localSpectral/src/view/VertexPaintRankTransformer.java
r33 r34 13 13 14 14 List<VertexScore<V>> pagerank; 15 List<V> cluster;15 V seed_node; 16 16 17 public VertexPaintRankTransformer(List<VertexScore<V>> ranking, List<V> cluster){17 public VertexPaintRankTransformer(List<VertexScore<V>> ranking, V seed_node){ 18 18 this.pagerank = ranking; 19 this. cluster = cluster;19 this.seed_node = seed_node; 20 20 } 21 21 22 22 public Paint transform(V node) { 23 23 24 if( cluster!= null){25 if ( cluster.contains(node)){24 if(seed_node != null){ 25 if (seed_node.equals(node)){ 26 26 return (Paint) Color.GREEN; 27 27 }
Note: See TracChangeset
for help on using the changeset viewer.