This package conducts one-sample and two-sample testing of binary Markov networks. The test can be at the network level (global) or at the edge level (multiple).
You can install it directly from GitHub through
library(devtools) devtools::install_github("drjingma/TestBMN", build_vignettes=T)
Cai, T. Tony, Li, Hongzhe, Ma, Jing and Xia, Yin. (2019) Differential Markov random fields analysis with applications to detecting differential microbial community structures. Biometrika