FSharpGephiStreamer


Installation instructions

FSharp

First of all, a working installation of F# is required. Head over to fsharp.org for detailed installation instructions for your OS

Gephi

The following steps are necessary to stream graph data from F# interactive to gephi:

  1. Install Java and JDK
    • Alternatively, if you want to use a jdk with a permissive license you can also use OpenJDK.
  2. Install Gephi
    • If you use OpenJDK, you have to ensure gephi knows its installation location:
      • go to C:\Program Files\Gephi-0.9.2\etc\gephi.conf
      • uncomment the following line: jdkhome="path/to/jdk"
      • replace the path with your openJDK installation path (usually C:\Program Files\AdoptOpenJDK\jdk-8.0.212.03-hotspot )
  3. Install Graph streaming plugin in gephi:

  1. Enable the master server (default settings:)

Streamer environment setup

If you want to use another connection than the default connection, you can use the Streamer.setEnvironment function to do so:

1: 
let currentConfig = Streamer.getEnvirmonment()
"http://localhost:8080/workspace1?operation=updateGraph"
1: 
2: 
3: 
4: 
5: 
let yourIp = "my-ip"

let yourPort = 1337

let yourWorkspace = "yourWorkspace"
1: 
Streamer.setEnvirmonment yourIp yourPort yourWorkspace

Which will change the connection string to your liking:

"http://http://my-ip:1337/yourWorkspace/?operation=updateGraph"
namespace FSharpGephiStreamer
val a : string
val b : int
val c : string
val usrConfig : string
val sprintf : format:Printf.StringFormat<'T> -> 'T
val currentConfig : string
module Streamer

from FSharpGephiStreamer
val getEnvirmonment : unit -> string
val yourIp : string
val yourPort : int
val yourWorkspace : string
val setEnvirmonment : ip:string -> port:int -> workspace:string -> unit
Fork me on GitHub