STLfy graph

Please see the two commits for details