--
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-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/cfa9ea8f-2b2b-42a5-aa6c-1aa5047020eeo%40googlegroups.com.
This:subgraph = g.E().has('type','xc')does not create a subgraph. That returns the list of edges that have the property "type" with a value of "xc". To be even more explicit, it actually constructs a Traversal object that gets that list and assigns it to "subgraph" and then the Gremlin Console evaluates "subgraph" sees it is a Traversal object and automatically iterates it for you.Please see the subgraph() step for more information on how to actually get a subgraph:
On Thu, Jul 2, 2020 at 8:17 PM Suriya Narayani <suriya.ja...@gmail.com> wrote:
Hi,--I'm able to connect to Gephi from gremlin and visualize the whole graph. But how can we execute gremlin queries and view the resultant graph in gephi ? I created a subgraph but I don't see anything on gephi after submitting it ,Example :gremlin> subgraph = g.E().has('type','xc')gremlin> :plugin use tinkerpop.gephi==>tinkerpop.gephi activatedgremlin> :remote connect tinkerpop.gephi workspace1 <ip> <port>==>Connection to Gephi - http://<ip>:<port>/workspace1 with stepDelay:1000, startRGBColor:[0.0, 1.0, 0.5], colorToFade:g, colorFadeRate:0.7, startSize:10.0,sizeDecrementRate:0.33gremlin> :> subgraph==>falseThanksSuriya
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 gremli...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/ef681b19-92ff-4798-9236-f536342329d6o%40googlegroups.com.
gremlin>subgraph=g.E().hasLabel('contains').subgraph('subgraph').cap('subgraph').next()
INFO [null]: Last record repeated 2 more times.
WARNING [org.gephi.streaming.api.GraphUpdaterEventHandler]: Edge added event ignored for edge 2gpp1-zqg8-3ifp-238k8: Target node 3510296 not found
INFO [org.gephi.streaming.api.GraphUpdaterEventHandler]: Unknown type org.gephi.streaming.impl.json.parser.JSONArray
java.lang.IllegalArgumentException: Unknown type org.gephi.streaming.impl.json.parser.JSONArray
at org.gephi.graph.impl.TableImpl.checkSupportedTypes(TableImpl.java:181)
at org.gephi.graph.impl.TableImpl.addColumn(TableImpl.java:59)
at org.gephi.graph.impl.TableImpl.addColumn(TableImpl.java:43)
at org.gephi.streaming.api.GraphUpdaterEventHandler.addNodeAttribute(GraphUpdaterEventHandler.java:343)
at org.gephi.streaming.api.GraphUpdaterEventHandler.nodeAdded(GraphUpdaterEventHandler.java:292)
at org.gephi.streaming.api.GraphUpdaterEventHandler.doHandleGraphEvent(GraphUpdaterEventHandler.java:156)
[catch] at org.gephi.streaming.api.GraphUpdaterEventHandler.handleGraphEvent(GraphUpdaterEventHandler.java:134)
at org.gephi.streaming.api.CompositeGraphEventHandler.handleGraphEvent(CompositeGraphEventHandler.java:95)
at org.gephi.streaming.impl.json.JSONStreamReader.parse(JSONStreamReader.java:336)
at org.gephi.streaming.impl.json.JSONStreamReader.parse(JSONStreamReader.java:220)
at org.gephi.streaming.impl.json.JSONStreamReader.processStream(JSONStreamReader.java:134)
at org.gephi.streaming.server.impl.ServerOperationExecutor.executeUpdateGraph(ServerOperationExecutor.java:219)
at org.gephi.streaming.server.impl.ServerControllerImpl.handle(ServerControllerImpl.java:230)
at org.gephi.streaming.server.impl.jetty.StreamingServerImpl$ContextContainer.service(StreamingServerImpl.java:307)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:748)
WARNING [org.gephi.streaming.api.GraphUpdaterEventHandler]: Edge added event ignored for edge 2fled-zdt4-3ifp-14h1k: Target node 1888328 not found
INFO [org.gephi.streaming.api.GraphUpdaterEventHandler]: Unknown type org.gephi.streaming.impl.json.parser.JSONArray
java.lang.IllegalArgumentException: Unknown type org.gephi.streaming.impl.json.parser.JSONArray
at org.gephi.graph.impl.TableImpl.checkSupportedTypes(TableImpl.java:181)
at org.gephi.graph.impl.TableImpl.addColumn(TableImpl.java:59)
at org.gephi.graph.impl.TableImpl.addColumn(TableImpl.java:43)
at org.gephi.streaming.api.GraphUpdaterEventHandler.addNodeAttribute(GraphUpdaterEventHandler.java:343)
at org.gephi.streaming.api.GraphUpdaterEventHandler.nodeAdded(GraphUpdaterEventHandler.java:292)
at org.gephi.streaming.api.GraphUpdaterEventHandler.doHandleGraphEvent(GraphUpdaterEventHandler.java:156)
[catch] at org.gephi.streaming.api.GraphUpdaterEventHandler.handleGraphEvent(GraphUpdaterEventHandler.java:134)
at org.gephi.streaming.api.CompositeGraphEventHandler.handleGraphEvent(CompositeGraphEventHandler.java:95)
at org.gephi.streaming.impl.json.JSONStreamReader.parse(JSONStreamReader.java:336)
at org.gephi.streaming.impl.json.JSONStreamReader.parse(JSONStreamReader.java:220)
at org.gephi.streaming.impl.json.JSONStreamReader.processStream(JSONStreamReader.java:134)
at org.gephi.streaming.server.impl.ServerOperationExecutor.executeUpdateGraph(ServerOperationExecutor.java:219)
at org.gephi.streaming.server.impl.ServerControllerImpl.handle(ServerControllerImpl.java:230)
at org.gephi.streaming.server.impl.jetty.StreamingServerImpl$ContextContainer.service(StreamingServerImpl.java:307)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
at org.eclipse.jetty.server.handler
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/ef681b19-92ff-4798-9236-f536342329d6o%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/ef681b19-92ff-4798-9236-f536342329d6o%40googlegroups.com.
Hi Stephen,
ThanksTejasri
--
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-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/7f2ba49e-5561-4f4b-90e5-c417ceb78282o%40googlegroups.com.