[fix] Proper formatting of graph API output