Fix the single node case.
Fix the single node case.
Fix empty graph case and no such node case.