# Small 3-node network:
N <- 3
graph <- matrix(0, N, N)
graph[upper.tri(graph)] <- c(0.5, 0.2, 0.8)
graph <- graph + t(graph)
thresholds <- rep(0, N)
# Mutual information of each node with the rest of the network:
NodeInformation(graph, thresholds)
Run the code above in your browser using DataLab