Add nodes and vertex