Small documentation fix and renaming

Add example to documentation, add _in_dag to function name, add test for
unconnected graph