Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8855001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:01:14+00:00 2026-06-14T14:01:14+00:00

This is the code i’m executing: g.v(452).outE(‘friend’, ‘like’).outV() The return 52 nodes … i

  • 0

This is the code i’m executing:

g.v(452).outE('friend', 'like').outV()

The return 52 nodes … i want to form them in categories by edge type, something like:

[ {friend: [v2,v3,v4…]}, {‘like’: [v5,v7,v9…]} ]

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:01:15+00:00Added an answer on June 14, 2026 at 2:01 pm

    Using the toy graph from the Gremlin terminal for example purposes :

    gremlin> g = TinkerGraphFactory.createTinkerGraph()
    ==>tinkergraph[vertices:6 edges:6]
    

    I added an extra edge called ‘friends’ to make the data a bit more interesting (where there would be multiple edges between two vertices):

    gremlin> g.addEdge(g.v(1), g.v(2), 'friends')
    ==>e[0][1-friends->2]
    gremlin> g.v(1).outE('knows','created','friends')
    ==>e[7][1-knows->2]
    ==>e[8][1-knows->4]
    ==>e[9][1-created->3]
    ==>e[0][1-friends->2]
    

    From there you could do something like:

    gremlin> g.v(1).outE('knows','created','friends').groupBy{it.label}{it.inV.next()}.cap
    ==>{knows=[v[2], v[4]], friends=[v[2]], created=[v[3]]}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This code changes the textbox instantly to red. I want it like, click button
This code : http://jsfiddle.net/bYtTG/1/ Works as I want in FF, chrome and opera, but
This code is not pretty, but I want to print out the last generated
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
This code will submit the information from the form to a php file, everything
This code is reading from mysql db tables and should return few names. But
This code throws parse error, which I do not understand why. function t(){ return
This code in the default login template: {{ form.errors }} Produces this html output
This code does not work: var mappingOption = { key: function (data) { return
This code creates a nice plot but I would like to add a horizontal

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.