remove some blank lines
remove piped input capability
simplify Graph ancestors