Any examples of a 3 hop gsql query? <EOM>

Is this along the lines of what you are looking for? ->

CREATE QUERY khop(VERTEX<MyNode> start_node, INT depth) for graph GraphName{

    OrAccum          @visited = false;
    SumAccum<int>    @@loop=0;

    Start = {start_node};
    Start = SELECT v
            FROM Start:v
            ACCUM v.@visited = true;

    WHILE (@@loop < depth) DO
        Start = SELECT v
                FROM Start:u - (MyEdge:e)->:v
                WHERE v.@visited == false
                ACCUM v.@visited = true;

        @@loop += 1;

   PRINT Start.size();