Package graph

Interface Vertex<EdgeType extends Edge<?>>

All Known Implementing Classes:
MazeGraph.MazeVertex

public interface Vertex<EdgeType extends Edge<?>>
Represents a vertex in a graph whose edges have type `EdgeType`.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return an object supporting iteration over all the edges connecting this vertex to another vertex in the graph.
  • Method Details

    • outgoingEdges

      Iterable<EdgeType> outgoingEdges()
      Return an object supporting iteration over all the edges connecting this vertex to another vertex in the graph. This vertex serves as the "source" vertex for each such edge.