A data frame in which the columns (subjects) contain a 0/1 value for row (Node or Edge).
type
The type of graph being used (adjmatrix or adjmatrixlt).
numSims
Number of simulations for Monte Carlo estimation of p-value(ideally, 1000 or more). Ignored if Chi-Square method is used.
plot
A boolean to create a plot of the results or not.
main
A title for the plot.
Value
A list containing information about the goodness of fit and potentially a plot. The list contains
the Pearson statistics, degrees of freedom, and p-value, the G statistics and p-value, the Chi Squared
statistics and p-value and finally the table with the observed and expected counts.