GraphViewImpl implements GraphView { @Override public boolean isNodeView() { return nodeView; } GraphViewImpl(final GraphStore store, boolean nodes, boolean edges);  GraphViewImpl(final GraphViewImpl view, boolean nodes, boolean edges); boolean addNode(final Node node); boolean addAllNodes(final Collection<? extends Node> nodes); boolean addEdge(final Edge edge); boolean addAllEdges(final Collection<? extends Edge> edges); boolean removeNode(final Node node); boolean removeNodeAll(final Collection<? extends Node> nodes); boolean removeEdge(final Edge edge); boolean removeEdgeAll(final Collection<? extends Edge> edges); void clear(); void clearEdges(); void fill(); boolean containsNode(final NodeImpl node); boolean containsEdge(final EdgeImpl edge); void intersection(final GraphViewImpl otherView); void union(final GraphViewImpl otherView); void not(); void addEdgeInNodeView(EdgeImpl edge); int getNodeCount(); int getEdgeCount(); int getUndirectedEdgeCount(); int getEdgeCount(int type); int getUndirectedEdgeCount(int type); @Override GraphModelImpl getGraphModel(); @Override boolean isMainView(); @Override boolean isNodeView(); @Override boolean isEdgeView(); void setTimeInterval(Interval interval); @Override Interval getTimeInterval(); @Override boolean isDestroyed(); int deepHashCode(); boolean deepEquals(GraphViewImpl obj);  }
@Test public void testIsNodeView() { GraphStore graphStore = GraphGenerator.generateSmallGraphStore(); GraphViewStore store = graphStore.viewStore; GraphView v1 = store.createView(); GraphView v2 = store.createView(true, false); Assert.assertTrue(v1.isNodeView() && v1.isEdgeView()); Assert.assertTrue(v2.isNodeView() && !v2.isEdgeView()); }