graph in js
hasEdge()
isConnected()