FSharpGephiStreamer


Streamer

Namespace: FSharpGephiStreamer

Nested types and modules

TypeDescription
EdgeConverter<'edge>

Converter type to map from a custom edge to a Grammar.Attribute list

NodeConverter<'node>

Converter type to map from a custom node to a Grammar.Attribute list

Functions and values

Function or valueDescription
addEdge (...)
Signature: edgeConverter:EdgeConverter<'edge> -> edgeId:obj -> sourceId:obj -> targetId:obj -> 'edge -> Either<string,Error>
Type parameters: 'edge

Adds an edge to the gephi graph using the given node converters grammar attribute mapping

addEdgeBy f
Signature: f:('edge -> string * string * string) -> 'edge -> Either<string,Error>
Type parameters: 'edge

Adds an edge given a mapping from edge to (edgeIdsourceIdtargetId)

addNode nodeConverter nodeId
Signature: nodeConverter:NodeConverter<'node> -> nodeId:obj -> 'node -> Either<string,Error>
Type parameters: 'node

Adds a node to the gephi graph using the given node converters grammar attribute mapping

addNodeBy f
Signature: f:('node -> string) -> 'node -> Either<string,Error>
Type parameters: 'node

Adds a node to the gephi graph given an id mapping (node -> nodeId)

getEnvirmonment ()
Signature: unit -> string

returns the url of the current target streamer server

removeEdge edgeId
Signature: edgeId:obj -> 'edge -> Either<string,Error>
Type parameters: 'edge

Removes an edge by edgeId

removeNode nodeId
Signature: nodeId:obj -> 'node -> Either<string,Error>
Type parameters: 'node

Removes a node by nodeId

setEnvirmonment ip port workspace
Signature: ip:string -> port:int -> workspace:string -> unit

change the url of the target streamer server (default:"http://localhost:8080/workspace1?operation=updateGraph")

updateEdge (...)
Signature: edgeConverter:EdgeConverter<'edge> -> edgeId:obj -> sourceId:obj -> targetId:obj -> 'edge -> Either<string,Error>
Type parameters: 'edge

Update edge (source and target are immutable)

updateNode nodeConverter nodeId
Signature: nodeConverter:NodeConverter<'node> -> nodeId:obj -> 'node -> Either<string,Error>
Type parameters: 'node

Updates a node on the gephi graph using the given node converters grammar attribute mapping

Fork me on GitHub