     describe "get_node_coordinates method", ->
 
       it "should return edge coords if exist", ->
-        graph_source = new GraphDataSource()
+        graph_source = new GraphSource()
         graph_source.nodes.data.index = [0,1,2,3]
         graph_source.edges.data.start = [0,0,0]
         graph_source.edges.data.end = [1,2,3]

utils = require "../../utils"

{StaticLayoutProvider} = utils.require("models/graphs/static_layout_provider")
{GraphDataSource} = utils.require("models/graphs/graph_data_source")

describe "StaticLayoutProvider", ->


    describe "get_node_coordinates method", ->

      it "should return node coords if exist", ->
        graph_source = new GraphSource()
        graph_source.nodes.data.index = [0,1,2,3]

        [xs, ys] = @layout_provider.get_node_coordinates(graph_source)
