(@Nullable Object obj)
| 31 | public AbstractGraph() {} |
| 32 | |
| 33 | @Override |
| 34 | public final boolean equals(@Nullable Object obj) { |
| 35 | if (obj == this) { |
| 36 | return true; |
| 37 | } |
| 38 | if (!(obj instanceof Graph)) { |
| 39 | return false; |
| 40 | } |
| 41 | Graph<?> other = (Graph<?>) obj; |
| 42 | |
| 43 | return isDirected() == other.isDirected() |
| 44 | && nodes().equals(other.nodes()) |
| 45 | && edges().equals(other.edges()); |
| 46 | } |
| 47 | |
| 48 | @Override |
| 49 | public final int hashCode() { |
nothing calls this directly
no test coverage detected