fix IE 9+ issues; add getElements(), getLinks(), getNeighbors() methods to the graph