mmaisel / gogephi

Golang client for Gephi Streaming API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Golang Gephi Streaming API Client

This is a golang client for the Gephi Streaming API.

Usage

	g := gephi.NewClient("localhost:8080", "workspace0")

	a := gephi.NewNode("A")
	b := gephi.NewNode("B")
	b.Attributes["Foo"] = "Bar"
	b.Size = 100
	e := gephi.NewEdge("A --- B", &a, &b)
	e1 := gephi.NewEdge("A --> B", &a, &b)
	e1.Directed = true

	g.AddNode(a)
	g.AddNode(b)
	g.AddEdge(e)
	g.AddEdge(e1)

	g.Commit()

About

Golang client for Gephi Streaming API

License:MIT License


Languages

Language:Go 100.0%