bg_to_mediate converts the results of
brainGraph_mediate into an object of class
mediate. In brainGraph, it is only used for
the summary.mediate method, but you can similarly
use its output for the plot.mediate method.
bg_to_mediate(x, region = NULL)Object output from brainGraph_mediate
Character string specifying which region's results to
summarize; only relevant if level='vertex' (default: NULL)
An object of class mediate