Chaning property map class to 'SparkGraphElement' and adding reference to SparkGraph.