# load example network.
load(system.file(package = "rTRM", "extra/example.rda"))
# define target and query nodes.
target = "N6"
query = c("N7", "N12", "N28")
# find TRM:
s = findTRM(g, target = target, query = query, method = "nsa", max.bridge = 1)
Run the code above in your browser using DataLab