Interface Structure

All Known Subinterfaces:
Graph
All Known Implementing Classes:
AbstractGraph, AdjacencyListGraph, DefaultGraph, GraphicGraph, MultiGraph, Path, SingleGraph

public interface Structure
Structures are generic objects which may contain nodes and edges.
  • Method Details

    • getNodeCount

      int getNodeCount()
      Number of nodes in this graph.
      Returns:
      The number of nodes.
    • getEdgeCount

      int getEdgeCount()
      Number of edges in this graph.
      Returns:
      The number of edges.
    • nodes

      Stream<Node> nodes()
    • edges

      Stream<Edge> edges()