Skip to content

Instantly share code, notes, and snippets.

@troyharvey
Last active August 1, 2018 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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

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