Package graph

Interface WeightedDigraph<V,E>

Type Parameters:
V - the type of vertices
E - the type of edges
All Superinterfaces:
DirectedGraph<V,E>
All Known Implementing Classes:
Maze

public interface WeightedDigraph<V,E> extends DirectedGraph<V,E>
Constraint interface for a directed graph with edge weights.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    weight(E edge)
    The weight of an edge

    Methods inherited from interface graph.DirectedGraph

    dest, outgoingEdges, source
  • Method Details

    • weight

      double weight(E edge)
      The weight of an edge