function to calculate the network potential for each protein in a user-provided vector - cpp internal version
calc_np_all(exp, g, v = "default", neighbors = NULL)
dataframe containing network potential for each of the inputed gene names.
expression vector - assumed to be a named vector where the values are expression and the names are the gene name
igraph object - will be filtered so that only nodes found in both exp and g are kept
character vector of nodes over which to calculate network potential.
named list containing the neighbors for each node of graph g. If not provided, it will be computed