title: gremlin filtering out edges based on time and fetch max value
body: <p>I am having list of edges between two vertices having time as edge property key.
  Eg:
  <strong>A --> B ( time=t1,age=20),  A-->B (time=t2,age=30)</strong> ...</p>
  
  <p>I need to fetch edges greater than the given time and take the max value of property '<strong>age</strong>'</p>
  
  <p>Code Example :</p>
  
  <pre><code> val end_time = System.currentTimeMillis() - duration
   val r = graph.V().has(ID, name).outE.filter { it: Edge =&gt;
        (it.property(time).value() &gt; end_time)
      }
   println("r.values("age").max().headOption().get)
  </code></pre>
  
  <p>this returns in <strong>Option[Byte]</strong> format.</p>
  
  <p>Is there any better way to do this. Also i need the value in integer.</p>