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/view/VertexPaintRankTransformer.java

    r33 r34  
    1313
    1414    List<VertexScore<V>> pagerank;
    15     List<V> cluster;
     15    V seed_node;
    1616
    17     public VertexPaintRankTransformer(List<VertexScore<V>> ranking, List<V> cluster){
     17    public VertexPaintRankTransformer(List<VertexScore<V>> ranking, V seed_node){
    1818        this.pagerank = ranking;
    19         this.cluster = cluster;
     19        this.seed_node = seed_node;
    2020    }
    2121
    2222    public Paint transform(V node) {
    2323
    24         if(cluster != null){
    25             if (cluster.contains(node)){
     24        if(seed_node != null){
     25            if (seed_node.equals(node)){
    2626                return (Paint) Color.GREEN;
    2727            }
Note: See TracChangeset for help on using the changeset viewer.