Package org.graphstream.graph
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 Summary
Modifier and Type Method Description Stream<Edge>edges()intgetEdgeCount()Number of edges in this graph.intgetNodeCount()Number of nodes in this graph.Stream<Node>nodes()
-
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
-
edges
-