basically you can store forward graphs in dictionaries with keys being strings of node names and list of target node strings as values.