Refactor edge is now a node instead of relationship in backend