Fix a few issues with getting the TOC info from a graph
Main change: build a connected graph using first input script as caller