org.apache.commons.graph
Interface WeightedPath<V extends Vertex,WE extends WeightedEdge<V>>

Type Parameters:
V - the Graph vertices type
WE - the Graph weighted edges type
All Superinterfaces:
Path<V,WE>
All Known Implementing Classes:
InMemoryPath

public interface WeightedPath<V extends Vertex,WE extends WeightedEdge<V>>
extends Path<V,WE>

A Path where Edge are weighted.


Method Summary
 Double getWeight()
          Gets the weight attribute of the WeightedPath object.
 
Methods inherited from interface org.apache.commons.graph.Path
getEdges, getSource, getTarget, getVertices, size
 

Method Detail

getWeight

Double getWeight()
Gets the weight attribute of the WeightedPath object.

Returns:
the weight attribute of the WeightedPath object.


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.