@Test public void testGetVertexHeight() { final int width = 10; final int height = 20; final String id = "1"; int actual = tested.getVertexHeight(id); assertEquals(DEFAULT_VERTEX_HEIGHT, actual); tested.setVertexSize(id, width, height); actual = tested.getVertexHeight(id); assertEquals(height, actual); }
@Override public int getVertexHeight(final String vertexId) { final int height = verticesHeight.getOrDefault(vertexId, DEFAULT_VERTEX_HEIGHT); return height; }
LayeredGraph implements ReorderedGraph { @Override public int getVertexHeight(final String vertexId) { final int height = verticesHeight.getOrDefault(vertexId, DEFAULT_VERTEX_HEIGHT); return height; } }
LayeredGraph implements ReorderedGraph { @Override public int getVertexHeight(final String vertexId) { final int height = verticesHeight.getOrDefault(vertexId, DEFAULT_VERTEX_HEIGHT); return height; } LayeredGraph();  LayeredGraph(final String[][] edgesMatrix); }
LayeredGraph implements ReorderedGraph { @Override public int getVertexHeight(final String vertexId) { final int height = verticesHeight.getOrDefault(vertexId, DEFAULT_VERTEX_HEIGHT); return height; } LayeredGraph();  LayeredGraph(final String[][] edgesMatrix); void addEdge(final String from,
                        final String to); void addEdge(final OrientedEdgeImpl edge); List<GraphLayer> getLayers(); List<String> getVertices(); @Override List<OrientedEdge> getEdges(); @Override int getVertexHeight(final String vertexId); @Override int getVertexWidth(final String vertexId); @Override void setVertexSize(final String vertexId, final int width, final int height); boolean isAcyclic(); String[] getVerticesFrom(final String vertex); }
LayeredGraph implements ReorderedGraph { @Override public int getVertexHeight(final String vertexId) { final int height = verticesHeight.getOrDefault(vertexId, DEFAULT_VERTEX_HEIGHT); return height; } LayeredGraph();  LayeredGraph(final String[][] edgesMatrix); void addEdge(final String from,
                        final String to); void addEdge(final OrientedEdgeImpl edge); List<GraphLayer> getLayers(); List<String> getVertices(); @Override List<OrientedEdge> getEdges(); @Override int getVertexHeight(final String vertexId); @Override int getVertexWidth(final String vertexId); @Override void setVertexSize(final String vertexId, final int width, final int height); boolean isAcyclic(); String[] getVerticesFrom(final String vertex);  }