I start with a list of parent/child (edge) relationships in a directed graph, like this:
import numpy as np import pandas as pd df = pd.DataFrame(columns=[\'