Simplified graph building