Update Edge.java

Added hasNode() and includesNodes()