Polytope method for finding a matrix that maximizes entropy function
polytope(G)
matrix, an adjacency matrix representing a graph
matrix containing optimal solution to entropy function under constraints
Uses convex optimization via the CVXR-package to find a matrix
This method is utilized in the function sdsm to compute probabilities of an edge existing in a graph. Method is called polytope as it is optimizing over the convex hull of the set of matrices (thought of as vectors) with the same row and column sums as the input.
# NOT RUN {
polytope(davis)
# }
Run the code above in your browser using DataLab