Skip to content
Snippets Groups Projects
Commit 391d627a authored by Sören Henning's avatar Sören Henning
Browse files

remove childGraph for vertices

parent d53126c2
No related branches found
No related tags found
1 merge request!17Get impletemented stages and Java 8
Pipeline #
......@@ -8,6 +8,8 @@ public interface Vertex extends Element {
public Graph getChildGraph();
public void removeChildGraph();
public Iterable<Edge> getEdges(Direction direction);
public Iterable<Vertex> getVertices(Direction direction);
......
......@@ -35,6 +35,11 @@ class VertexImpl extends ElementImpl implements Vertex {
return childGraph;
}
@Override
public void removeChildGraph() {
childGraph = null;
}
@Override
public Iterable<Edge> getEdges(final Direction direction) {
if (direction.equals(Direction.OUT)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment