Move edge and node creation to graph member functions
REBASEME: stdexcept
Whitespace and formatting