G <- matrix( c(0,0,1,
0,0,1,
0,0,0), 3, 3, byrow = TRUE )
# Matrix G is an adjacency matrix of a graph with 3 nodes and 2 links
log_Ig( G, b = 3, D = diag(3) )
Run the code above in your browser using DataLab