public class ConnectedComponents.ConnectedComponent
extends java.lang.Object
implements org.graphstream.graph.Structure
ConnectedComponents.getConnectedComponentOf(Node)
methods of the
algorithm.Modifier and Type | Field and Description |
---|---|
int |
id
The unique id of this component.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(org.graphstream.graph.Node n)
Test if this component contains a given node.
|
java.util.stream.Stream<org.graphstream.graph.Edge> |
edges()
Return an stream over the edge of this component.
|
int |
getEdgeCount() |
int |
getNodeCount() |
java.util.Set<org.graphstream.graph.Node> |
getNodeSet()
Get a set containing all the nodes of this component.
|
java.util.stream.Stream<org.graphstream.graph.Node> |
nodes()
Return an stream over the nodes of this component.
|
java.lang.String |
toString() |
public final int id
ConnectedComponents
algorithm.public java.util.stream.Stream<org.graphstream.graph.Node> nodes()
nodes
in interface org.graphstream.graph.Structure
public java.util.Set<org.graphstream.graph.Node> getNodeSet()
public java.util.stream.Stream<org.graphstream.graph.Edge> edges()
edges
in interface org.graphstream.graph.Structure
public boolean contains(org.graphstream.graph.Node n)
n
- a nodepublic java.lang.String toString()
toString
in class java.lang.Object
public int getNodeCount()
getNodeCount
in interface org.graphstream.graph.Structure
public int getEdgeCount()
getEdgeCount
in interface org.graphstream.graph.Structure