Learn R Programming

WordOfMouth (version 1.2.0)

WoMNetwork-class: Class WoMNetwork

Description

This class represents an average random graph.

Arguments

Slots

size

(numeric) The number of consumers in the network.

avgConnections

(numeric) Average number of connections per consumer.

Objects from the Class

Objects can be created by calls of the form new("WoMNetwork", ...). This S4 class describes WoMNetwork objects.

Examples

Run this code

network <- new("WoMNetwork", size = 1000, avgConnections = 5)
print(network)

Run the code above in your browser using DataLab