Getting a subgraph in Go for Visualization


I have a use case in go when being used as a library.
I am look to visualize/analyze full linkages from a given vertex for it’s entire subgraph. (for example, a full family tree given a name)
How would I extract a subchain for visualization from the perspective of the cayley library?

I found a set of information on how it’s done in gremlin but that doesn’t seem to be there in Gizmo.

Thank you,


Hi @aselus, and sorry for a long wait.

The easiest way will be to use schema lib to read your entire subtree into Go struct and visualize it afterwards. If I understood correctly, the tree will easily fit into memory.