NodeDegree
class NodeDegree @JvmOverloads constructor(filter: ExportFilter, aggregators: List<String>, precision: Int = 2) : AbstractAggregatingDoubleExtractor(source)
Extract the degree of the nodes in the network. The degree of a node is the number of neighbors it has. The result can be aggregated by the given aggregators and filtered by the given filter.
Properties
Link copied to clipboard
The name of the column in the output file.
Link copied to clipboard
The names of the properties that this Extractor can provide as columns.
Functions
Link copied to clipboard
override fun <T> extractData(environment: Environment<T, *>, reaction: Actionable<T>?, time: Time, step: Long): Map<String, Double>
Extracts properties from an environment.
Link copied to clipboard
override fun <T> extractDataAsText(environment: Environment<T, *>, reaction: Actionable<T>?, time: Time, step: Long): Map<String, String>
Same as extractData, but specifically meant for textual outputs.