moved property functions from element.go to graph.go