Skip to contents

Substitute node columns (columns 1 and 2) of a graph data frame with a dictionary of substitutions.

Usage

graph_subs(DF, df_subs)

Arguments

DF

a graph data frame

df_subs

a data frame with the substitutions to be made, where the first column is what to substitute and column 2 is what to substitute with. It uses regular expressions.