topology sorting,formatting, new example graph