tinkerpop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marko A. Rodriguez (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TINKERPOP3-761) Some basic mathematical functions / steps
Date Mon, 03 Aug 2015 19:18:06 GMT

    [ https://issues.apache.org/jira/browse/TINKERPOP3-761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14652310#comment-14652310
] 

Marko A. Rodriguez commented on TINKERPOP3-761:
-----------------------------------------------

Ha ha. Yes it is. Wow.

Thus,

{code}
mult(Number)
mult(Number,Traversal<?,Number>)
mult(Traversal<?,Number>)
mult(Traversal<?,Number>,Traversal<?,Number>)
{code}

And, for the mutation steps:

{code}
g.V().as('a').outE().as('b').inV().addOutE('knows',select('a'),'weight',select('b').by('weight'))
{code}

but now the API is crazy.

{code}
addOutE(String / Traversal<?, String>, Vertex/ Traversal<?, Vertex>, Object /
Traversal<?, Object>...)
{code}

........so many combinations.....

> Some basic mathematical functions / steps
> -----------------------------------------
>
>                 Key: TINKERPOP3-761
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-761
>             Project: TinkerPop 3
>          Issue Type: Improvement
>          Components: process
>    Affects Versions: 3.0.0-incubating
>            Reporter: Daniel Kuppitz
>            Assignee: Marko A. Rodriguez
>
> Every once in a while I wish to have steps for some basic mathematical operations ({{add()}},
{{sub()}}, {{mul()}}, {{div()}}). Since {{sub(num)}} is the same as {{add(-num)}} and {{div(num)}}
is the same as {{mul(1/num)}}, we would only need two new step implementations.
> Oh, and then there's also {{mod()}}, thus 3 new step implementations.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message