Skip to content
Permalink
Browse files

Remove Graphs.equivalent() methods. Please use graphA.equals(graphB),…

… or Objects.equals(graphA, graphB) instead.

RELNOTES=remove Graphs.equivalent()

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=182890292
  • Loading branch information...
kluever authored and cpovirk committed Jan 23, 2018
1 parent f91ef6c commit 41fa39fa7279c8fc94c7c3bb0367e2a5068d78c7
@@ -209,38 +209,6 @@ private static boolean canTraverseWithoutReusingEdge(
return Collections.unmodifiableSet(visitedNodes);
}

/**
* @deprecated Use {@link Graph#equals(Object)} instead. This method is scheduled to be removed in
* April 2018.
*/
// TODO(b/72241742): Remove by 2018-04
@Deprecated
public static boolean equivalent(@NullableDecl Graph<?> graphA, @NullableDecl Graph<?> graphB) {
return Objects.equal(graphA, graphB);
}

/**
* @deprecated Use {@link ValueGraph#equals(Object)} instead. This method is scheduled to be
* removed in April 2018.
*/
// TODO(b/72241742): Remove by 2018-04
@Deprecated
public static boolean equivalent(
@NullableDecl ValueGraph<?, ?> graphA, @NullableDecl ValueGraph<?, ?> graphB) {
return Objects.equal(graphA, graphB);
}

/**
* @deprecated Use {@link Network#equals(Object)} instead. This method is scheduled to be removed
* in April 2018.
*/
// TODO(b/72241742): Remove by 2018-04
@Deprecated
public static boolean equivalent(
@NullableDecl Network<?, ?> networkA, @NullableDecl Network<?, ?> networkB) {
return Objects.equal(networkA, networkB);
}

// Graph mutation methods

// Graph view methods
@@ -210,38 +210,6 @@ private static boolean canTraverseWithoutReusingEdge(
return Collections.unmodifiableSet(visitedNodes);
}

/**
* @deprecated Use {@link Graph#equals(Object)} instead. This method is scheduled to be removed in
* April 2018.
*/
// TODO(b/72241742): Remove by 2018-04
@Deprecated
public static boolean equivalent(@NullableDecl Graph<?> graphA, @NullableDecl Graph<?> graphB) {
return Objects.equal(graphA, graphB);
}

/**
* @deprecated Use {@link ValueGraph#equals(Object)} instead. This method is scheduled to be
* removed in April 2018.
*/
// TODO(b/72241742): Remove by 2018-04
@Deprecated
public static boolean equivalent(
@NullableDecl ValueGraph<?, ?> graphA, @NullableDecl ValueGraph<?, ?> graphB) {
return Objects.equal(graphA, graphB);
}

/**
* @deprecated Use {@link Network#equals(Object)} instead. This method is scheduled to be removed
* in April 2018.
*/
// TODO(b/72241742): Remove by 2018-04
@Deprecated
public static boolean equivalent(
@NullableDecl Network<?, ?> networkA, @NullableDecl Network<?, ?> networkB) {
return Objects.equal(networkA, networkB);
}

// Graph mutation methods

// Graph view methods

0 comments on commit 41fa39f

Please sign in to comment.
You can’t perform that action at this time.