New to_string and _to_string methods for graphs. Also added utils namespace.