Guest User

Untitled

a guest
Oct 24th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. public boolean areAdjacent(Vertex<V> v, Vertex<V> w) {
  2. ELVertex v1 = check(v);
  3. ELVertex v2 = check(w);
  4.  
  5. if (edges.get(v2.getNumber() * (v1.getNumber() + 1)) != null) {
  6. return true;
  7. }
  8.  
  9. return false;
  10. }
Add Comment
Please, Sign In to add comment