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 Link icon

    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 Link icon

    • outgoingEdges Link icon

      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.