Skip to content

Instantly share code, notes, and snippets.

@troyharvey
Last active April 22, 2025 13:14
Show Gist options
  • Save troyharvey/dca9efc8be4e2a49034ee48d3c381d48 to your computer and use it in GitHub Desktop.
Save troyharvey/dca9efc8be4e2a49034ee48d3c381d48 to your computer and use it in GitHub Desktop.
Using the Gephi Graph Streaming Plugin with Cayley

Cayley is an open-source graph inspired by the graph database behind Freebase and Google's Knowledge Graph. Gephi is an open-source graph visualization tool. The Graph Streaming plugin for Gephi allows you to visualize a Cayley graph or a stream of real-time changes to a Cayley graph.

  1. Install Cayley

     brew install cayley
    
  2. Start Cayley with the Movie Data sample

     cayley http -i /usr/local/share/cayley/samples/30kmoviedata.nq -d memstore --host=:64210`
    
  3. Install Gephi

     brew cask install gephi
    
  4. Install the Graph Streaming Gephi plugin.

    1. Tools > Plugins
    2. Search: "Streaming"
    3. Install Graph Streaming
  5. Open the Window > Graph panel

  6. Open the Window > Streaming panel

  7. In the Streaming panel, right-click Client and choose Connect to Stream

    1. Source URL: http://localhost:64210/gephi/gs
    2. Stream Type: JSON
  8. From the Layout panel, choose OpenOrd and click Run

@jmonroynieto
Copy link

Some broken links here The cayley doc is now https://github.com/cayleygraph/cayley/blob/master/docs/gephigraphstream.md

I have the development version of gephi, It does not include marketplace access. The files are distributed by the gephi page at https://gephi.org/plugins/#/plugin/graphstreamin. The installation files for the plugin should be extracted and installed using the add plugins button in the Downloaded tab of the plugins modal (tools > plugins).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment