in Education by
I have vertices people, usertype, and location. People has outgoing edges people_location and people_usertype. People has property 'name', usertype has property 'activationStatus', and location has property 'name'. I want to create a list that looks like this: [[1]: https://i.stack.imgur.com/lKzZL.png] I want the count of people, by location, for activationStatus "active" and "inactive" where the location has "US" in it. This is all I have only for count of people by location where the location 'name' begins with US: g.V()hasLabel('people').out('people_publicisofficelocation') .filter(has('name',between('US','UT'))) .groupCount().by('name') It is running but not yielding results. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
You can simulate 'starts with' behavior in versions of TinkerPop prior to 3.4 using something like has('name',between('US','UT')) so you could replace the filter line above with that. If the graph implementation you are using supports TinkerPop 3.4 there are additional text predicates you can use for begins with, ends with and contains. As others have said if you can post some sample addV() and addE() steps that build part of your graph it will be easier to give a more precise answer.

Related questions

0 votes
    _________ are also used for hides user's physical location. (a) Firewall (b) Antivirus (c) Incognito mode (d) ... Security questions and answers pdf, mcq on Cyber Security pdf,...
asked Nov 4, 2021 in Education by JackTerrance
0 votes
    Charges for code commit are based on the active users. Select the option from below list : a) True b) False AWS Interview Questions and Answers Agile Interview Questions Answers...
asked Jul 21, 2021 in Technology by Editorial Staff
0 votes
    What is average potential of neural liquid in inactive state? (a) +70mv (b) +35mv (c) -35mv (d) -70mv Please answer the above question....
asked Sep 21, 2022 in Education by JackTerrance
0 votes
    The β − β activity of a sample of C O 2 C prepared form a contemporary wood gave a count rate of 25.5 25 ... which is 4000 year old? Select the correct answer from above options...
asked Jan 2, 2022 in Education by JackTerrance
0 votes
    What type of plot is obtained for rate versus time for zero order reaction gt Select the correct answer from above options...
asked Jan 4, 2022 in Education by JackTerrance
0 votes
    This is what I have so far: myArray.map!{ rand(max) } Obviously, however, sometimes the numbers ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 23, 2022 in Education by JackTerrance
0 votes
    Question No.1: What do you understand about container tag and empty tag, give example? Question No.2: What do ... all the attributes? Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    I was recently trying to explain to a programmer why, in ASP.Net, they should create HTMLControls instead ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 10, 2022 in Education by JackTerrance
0 votes
    I'm writing an app in OpenGL ES 1.1. I'm rendering a textured sphere around the viewer, i.e. ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Here is a pure Python-specific design question: class MyClass(object): ... def get_my_attr(self): ... def ... you use and why? Select the correct answer from above options...
asked Jan 26, 2022 in Education by JackTerrance
0 votes
    What I'm trying to achieve is a list of links with some separate divs. at the moment the fading ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    What I'm trying to achieve is a list of links with some separate divs. at the moment the fading ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
...