graph.addEdge(factory.newEdge("6-4",graph.getNode(6), graph.getNode(4), 2f, false));
graph.addEdge(factory.newEdge("3-4",graph.getNode(3), graph.getNode(4), 5f, false));
//Query
NodeDegreeFilter nodeDegreeFilter = new NodeDegreeFilter(3);
simpleQuery = new FilterQueryImpl(nodeDegreeFilter);
nodeDegreeFilter = new NodeDegreeFilter(1);
chainQuery = new FilterQueryImpl(nodeDegreeFilter);
((FilterQueryImpl) chainQuery).addSubQuery(new FilterQueryImpl(new EdgeWeightFilter(1)));
complexQueryUnion = new OperatorQueryImpl(new UnionOperator());
((OperatorQueryImpl) complexQueryUnion).addSubQuery(new FilterQueryImpl(new NodeIdFilter(1)));
((OperatorQueryImpl) complexQueryUnion).addSubQuery(new FilterQueryImpl(new NodeIdFilter(3)));
veryComplexQueryInter = new FilterQueryImpl(new EdgeWeightFilter(0));
OperatorQueryImpl q1 = new OperatorQueryImpl(new UnionOperator());
((FilterQueryImpl) veryComplexQueryInter).addSubQuery(q1);
q1.addSubQuery(new FilterQueryImpl(new NodeIdFilter(0)));
OperatorQueryImpl q2 = new OperatorQueryImpl(new UnionOperator());
q2.addSubQuery(new FilterQueryImpl(new NodeIdFilter(1)));
q2.addSubQuery(new FilterQueryImpl(new NodeIdFilter(2)));
q1.addSubQuery(q2);
FilterQueryImpl q3 = new FilterQueryImpl(new NodeDegreeFilter(2));
q3.addSubQuery(new FilterQueryImpl(new EdgeWeightFilter(1)));
q1.addSubQuery(q3);
}