add opts to graph.coffee