Simplified API for adding edges.