Begin port "graph.format.js" to Smalltalk code