1 /*
2 * Created on Jul 6, 2007
3 *
4 * Copyright (c) 2007, The JUNG Authors
5 *
6 * All rights reserved.
7 *
8 * This software is open-source under the BSD license; see either
9 * "license.txt" or
10 * https://github.com/jrtom/jung/blob/master/LICENSE for a description.
11 */
12 package edu.uci.ics.jung.algorithms.scoring;
13
14
15 /**
16 * An interface for algorithms that assign scores to vertices.
17 *
18 * @param <V> the vertex type
19 * @param <S> the score type
20 */
21 public interface VertexScorer<V, S>
22 {
23 /**
24 * @param v the vertex whose score is requested
25 * @return the algorithm's score for this vertex
26 */
27 public S getVertexScore(V v);
28 }