public interface GraphMetricsExtractor
The graph has to be provided using a Source.
The properties extracted from the graph are the number of nodes, the number of edges, the degree distribution, the clustering coefficient distribution.
Modifier and Type | Method and Description |
---|---|
static GraphMetricsExtractor |
forSource(Source source)
Return a GraphMetricsExtractor for the provided source.
|
static GraphMetricsExtractor |
forSource(Source source,
java.lang.String fromHeader,
java.lang.String toHeader)
Return a GraphMetricsExtractor for the provided source.
|
org.apache.commons.math3.distribution.RealDistribution |
getClusteringCoefficientDistribution() |
org.apache.commons.math3.distribution.IntegerDistribution |
getDegreeDistribution() |
int |
getNbEdges() |
int |
getNbNodes() |
static GraphMetricsExtractor forSource(Source source)
source
- : the source leading to the graphstatic GraphMetricsExtractor forSource(Source source, java.lang.String fromHeader, java.lang.String toHeader)
source
- : the source leading to the graphfromHeader
- : the string to use to identify the source (column name)toHeader
- : the string to use to identify the targets (column name)int getNbNodes()
int getNbEdges()
org.apache.commons.math3.distribution.RealDistribution getClusteringCoefficientDistribution()
org.apache.commons.math3.distribution.IntegerDistribution getDegreeDistribution()