Plexus v0.13.1

com.phoenixst.plexus
Interface Weight


public interface Weight

A weight function, which may be applied to Edges.

Since:
1.0
Version:
$Revision: 1.5 $
Author:
Ray A. Conner

Method Summary
 double getWeight(Graph.Edge edge)
          Gets the weight of the specified edge.
 void setWeight(Graph.Edge edge, double weight)
          Sets the weight of the specified edge (optional operation).
 

Method Detail

getWeight

double getWeight(Graph.Edge edge)
Gets the weight of the specified edge.

Parameters:
edge - the edge whose weight is to be returned.

setWeight

void setWeight(Graph.Edge edge,
               double weight)
Sets the weight of the specified edge (optional operation).

Parameters:
edge - the edge whose weight is to be set.
weight - the new weight of the specified edge.
Throws:
UnsupportedOperationException - if this method is not supported.

Plexus v0.13.1

See the Plexus project home, hosted by SourceForge.
Copyright ? 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.