Graphs { public static <E extends ConnectionData> Graph<E> unmodifiableGraph( Graph<E> graph) { return new UnmodifiableGraph<>(graph); } private  Graphs(); static void addPath(Graph<E> graph,
      Point... path); static void addPath(Graph<E> graph,
      Iterable<Point> path); static void addBiPath(Graph<E> graph,
      Point... path); static void addBiPath(Graph<E> graph,
      Iterable<Point> path); static Graph<E> unmodifiableGraph(
      Graph<E> graph); static boolean equal(Graph<?> g1, @Nullable Object other); static List<Point> shortestPathEuclideanDistance(
      Graph<E> graph, final Point from, final Point to); static List<Point> shortestPath(
      Graph<E> graph, final Point from, final Point to, GeomHeuristic h); @Nullable static T findClosestObject(Point pos, Collection<T> objects,
      Function<T, Point> transformation); static List<T> findClosestObjects(Point pos,
      Collection<T> objects, Function<T, Point> transformation, int n); static double pathLength(List<Point> path); static ImmutableList<Point> getExtremes(Graph<?> graph);  }
@Test(expected = UnsupportedOperationException.class) public void unmodAddConn() { Graphs.unmodifiableGraph(graph).addConnection(new Point(1, 2), new Point(2, 3)); }
@Test(expected = UnsupportedOperationException.class) public void unmodMerge() { Graphs.unmodifiableGraph(graph).merge(null); }
@Test(expected = UnsupportedOperationException.class) public void unmodAddConns() { Graphs.unmodifiableGraph(graph).addConnections(null); }
@Test(expected = UnsupportedOperationException.class) public void unmodRemoveNode() { Graphs.unmodifiableGraph(graph).removeNode(null); }
@Test(expected = UnsupportedOperationException.class) public void unmodRemoveConnection() { Graphs.unmodifiableGraph(graph).removeConnection(null, null); }
@Test(expected = UnsupportedOperationException.class) public void unmodAddConnection() { Graphs.unmodifiableGraph(graph).addConnection(null, null, null); }
@Test(expected = UnsupportedOperationException.class) public void unmodAddConnection2() { Graphs.unmodifiableGraph(graph).addConnection(null); }
@Test(expected = UnsupportedOperationException.class) public void unmodSetConnData() { Graphs.unmodifiableGraph(graph).setConnectionData(null, null, null); }