sends nodes and sends edges to the server