package com.altamiracorp.securegraph.query;

import com.altamiracorp.securegraph.Authorizations;
import com.altamiracorp.securegraph.Edge;
import com.altamiracorp.securegraph.Graph;
import com.altamiracorp.securegraph.Vertex;

public class DefaultVertexQuery extends VertexQueryBase implements VertexQuery {
    public DefaultVertexQuery(Graph graph, Authorizations authorizations, Vertex sourceVertex) {
        super(graph, authorizations, sourceVertex);
    }

    @Override
    public Iterable<Edge> edges() {
        return null;
    }
}

@@ -218,16 +218,73 @@
 .Vertex;
+%0Aimport com.altamiracorp.securegraph.util.FilterIterable;
 %0A%0Apublic
@@ -584,11 +584,480 @@
 rn n
-ull
+ew FilterIterable%3CEdge%3E(getGraph().getEdges(getParameters().getAuthorizations())) %7B%0A            @Override%0A            protected boolean isIncluded(Edge edge) %7B%0A                if (edge.getOutVertexId().equals(getSourceVertex().getId())) %7B%0A                    return true;%0A                %7D%0A                if (edge.getInVertexId().equals(getSourceVertex().getId())) %7B%0A                    return true;%0A                %7D%0A                return false;%0A            %7D%0A        %7D
 ;%0A  

implement DefaultVertexQuery edges