gremlin> g.V().groupCount().by(label).order(local).by(values,decr)
==>[person:4,software:2]NOTE | The values and keys enums are from Column which is used to select "columns" from a Map, Map.Entry, or Path. |
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/a4d99001-d535-4eba-8f6f-905fce893d4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Gremlin-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gremlin-users/awclwrrUgv4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CABed_4oPgbDNGx_dk2Rh0_wYYaSz-uq4QYc7tuSwKc9CXx1MbQ%40mail.gmail.com.
gremlin> g.V(1).as("a").repeat(out().as("a")).times(2).select(first, "a")
==>v[1]
==>v[1]
gremlin> g.V(1).as("a").repeat(out().as("a")).times(2).select(last, "a")
==>v[5]
==>v[3]
gremlin> g.V(1).as("a").repeat(out().as("a")).times(2).select(all, "a")
==>[v[1],v[4],v[5]]
==>[v[1],v[4],v[3]]
This should work: g.V().groupCount().by(T.label).order(Scope.local).by(Column.values, Order.decr).next();
--
You received this message because you are subscribed to a topic in the Google Groups "Gremlin-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gremlin-users/awclwrrUgv4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/db8c2ee2-9674-49df-b795-151dab306c6e%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAMy_dw0%2BGLVwft%2BgsncDBO%2BR2nSOs1kEEg%3D1yQhmpfa%2B5HS3ow%40mail.gmail.com.
An Important problem in learning Gremlin using JavaOne of my confusing problem is "How to find class of static imports of Gremlin Console in Java?"for example "values" in this topic is an instance of it.or in the following example of "Select step" what is the class of first, last and all ?gremlin> g.V(1).as("a").repeat(out().as("a")).times(2).select(first, "a")
==>v[1]
==>v[1]
gremlin> g.V(1).as("a").repeat(out().as("a")).times(2).select(last, "a")
==>v[5]
==>v[3]
gremlin> g.V(1).as("a").repeat(out().as("a")).times(2).select(all, "a")
==>[v[1],v[4],v[5]]
==>[v[1],v[4],v[3]]I encounter with these problems many time in learning Tinkerpop using Java.Do you have any straight forward solution?Regards,
On Mon, Jan 29, 2018 at 1:52 PM, Yura A <yura...@gmail.com> wrote:
This should work: g.V().groupCount().by(T.label).order(Scope.local).by(Column.values, Order.decr).next();
--
You received this message because you are subscribed to a topic in the Google Groups "Gremlin-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gremlin-users/awclwrrUgv4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gremlin-user...@googlegroups.com.
One of my confusing problem is "How to find class of static imports of Gremlin Console in Java?"
gremlin> :show importsCustom imports: org.apache.tinkerpop.gremlin.structure.* org.apache.tinkerpop.gremlin.structure.util.* org.apache.tinkerpop.gremlin.process.traversal.* org.apache.tinkerpop.gremlin.process.traversal.step.* org.apache.tinkerpop.gremlin.process.remote.* org.apache.tinkerpop.gremlin.structure.util.empty.* org.apache.tinkerpop.gremlin.structure.io.* org.apache.tinkerpop.gremlin.structure.io.graphml.* org.apache.tinkerpop.gremlin.structure.io.graphson.* org.apache.tinkerpop.gremlin.structure.io.gryo.* org.apache.commons.configuration.* org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration.* org.apache.tinkerpop.gremlin.process.traversal.strategy.optimization.* org.apache.tinkerpop.gremlin.process.traversal.strategy.finalization.* org.apache.tinkerpop.gremlin.process.traversal.strategy.verification.* org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.* org.apache.tinkerpop.gremlin.process.traversal.util.* org.apache.tinkerpop.gremlin.process.computer.* org.apache.tinkerpop.gremlin.process.computer.bulkdumping.* org.apache.tinkerpop.gremlin.process.computer.bulkloading.* org.apache.tinkerpop.gremlin.process.computer.clustering.peerpressure.* org.apache.tinkerpop.gremlin.process.computer.traversal.* org.apache.tinkerpop.gremlin.process.computer.ranking.pagerank.* org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.optimization.* org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.decoration.* org.apache.tinkerpop.gremlin.util.* org.apache.tinkerpop.gremlin.util.iterator.* org.apache.tinkerpop.gremlin.util.function.* static org.apache.tinkerpop.gremlin.structure.io.IoCore.* static org.apache.tinkerpop.gremlin.process.traversal.P.* static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__.* static org.apache.tinkerpop.gremlin.process.computer.Computer.* static org.apache.tinkerpop.gremlin.util.TimeUtil.* static org.apache.tinkerpop.gremlin.util.function.Lambda.* static org.apache.tinkerpop.gremlin.process.traversal.SackFunctions.Barrier.* static org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality.* static org.apache.tinkerpop.gremlin.structure.Column.* static org.apache.tinkerpop.gremlin.structure.Direction.* static org.apache.tinkerpop.gremlin.process.traversal.Operator.* static org.apache.tinkerpop.gremlin.process.traversal.Order.* static org.apache.tinkerpop.gremlin.process.traversal.Pop.* static org.apache.tinkerpop.gremlin.process.traversal.Scope.* static org.apache.tinkerpop.gremlin.structure.T.* static org.apache.tinkerpop.gremlin.process.traversal.step.TraversalOptionParent.Pick.* org.apache.tinkerpop.gremlin.driver.* org.apache.tinkerpop.gremlin.driver.exception.* org.apache.tinkerpop.gremlin.driver.message.* org.apache.tinkerpop.gremlin.driver.ser.* org.apache.tinkerpop.gremlin.driver.remote.* groovyx.gbench.* groovyx.gprof.* static groovyx.gprof.ProfileStaticExtension.* org.apache.tinkerpop.gremlin.tinkergraph.structure.* org.apache.tinkerpop.gremlin.tinkergraph.process.computer.*gremlin> first.getClass()==>class org.apache.tinkerpop.gremlin.process.traversal.PopTo view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/916ae14b-201a-432c-b011-6a4430405975%40googlegroups.com.To unsubscribe from this group and all its topics, send an email to gremlin-users+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAMy_dw1tX5UNYSpXWy-r_idx8JK2QDn21cq_LoNP9m152UVZ8w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAA-H438XM9mJVcqBszPbL%3D__GWRdhc_%2BfUB07zPWBVEottzGaw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAMy_dw2m7VQ4m-QvswiT3j6AP3idAqjSdAFq8Y8wn_21o-7Apg%40mail.gmail.com.