powered by
Functions that return the number of nodes in the community.
NumberOfNodes(community) NumberOfNodesByClass(community, class) FractionOfNodesByClass(community, class)
NumberOfNodes returns a single number.
NumberOfNodes
NumberOfNodesByClass and FractionOfNodesByClass both return a value for each class.
NumberOfNodesByClass
FractionOfNodesByClass
class
an object of class Community.
Community
the property over which fn is applied. Defaults to 'category' if the community has a node property with that name.
fn
Lawrence Hudson
Community, NPS
NPS
data(TL84) NumberOfNodes(TL84) NumberOfNodesByClass(TL84) FractionOfNodesByClass(TL84)
Run the code above in your browser using DataLab