Straightforward way to render a force directed graph svg/png

I was wondering if there is a "simple" way in java for me to take a GraphTraversal and render a force directed picture of the graph or subgraph it returns?
4 Replies
spmallette
spmallette10mo ago
i'm not aware of any tools that do that from like a Java API. you would use tools like G.V() or Gremlify for those things. The Gephi plugin to the Gremlin Console does showcase one way you can do such a thing programmatically i guess. It requires the streaming plugin though for it to work. https://tinkerpop.apache.org/docs/current/reference/#gephi-plugin
cinterloper
cinterloper10mo ago
ah, right. I remember setting that up a long time ago. I think you make a YouTube video about it. I was hoping to have a simple java only frame by frame animation type thing, I guess I will have to write a force directed rendering impl in java if I really want it that bad. java
Jim Idle
Jim Idle10mo ago
I suppose that you could just generate a .dot file and use the sfdp renderer with Graphviz. It means writing a bit of code, but it is simply an iteration through the results and generating a text file, then executing the dot command. https://graphviz.org/docs/layouts/sfdp/
Graphviz
sfdp
stands for Scalable Force-Directed Placement.
Jim Idle
Jim Idle10mo ago
It's more or less what we do in ANTLR
Want results from more Discord servers?
Add your server
More Posts
Can't do explain() traversal step using Gremlin-Python ..Hi I just started messing around in gremlin-python this week, so likely to be doing something wrong Gremlin Query for amount of time and return all results?Is there a way to make gremlin keep running until time elapses then return the results? I have a queHow do I make a ssl connection using only ARN from neptune (AWS)I have a simple connection in my project using remotecon = DriverRemoteConnection(neptune_url) But Can gremlin-server be started via its Java packageI'm considering exposing the G.V() Playground graphs, which runs on TinkerGraph, to the network via Getting Property Out of a Variable in Python Gremlin QueryI've been working on attempting to find a performance way to route from point A to point B. Right nThe Cascading Coalescing - Create a V then Create an E in One ShotI have been struggling with this and perhaps I can ask some expert on how to approach this type of iToolsetHi all, Im in a bit of a dilemma. Want to start using a graphdb for a new application however ik stGremlin query has strange behavior with range() and limit()Hey everyone, I have a Neptune database and use gremlin to query it. I have user vertices that coulUser-Agent Metric Not Exposed in Gremlin Server - Need Help TroubleshootingHey everyone, I've been working with Gremlin and noticed that we can pass the User-Agent in requestsGremlin Syntax HighlighterI want to implement an Gremlin Synthax highlighter (displayed in HTML) via javascript/typescript. Ho