Small go package for building Cytoscape networks that can be visualized with
Cytoscape.js.
Examples
Have a look at examples/stdout/main.go for an example
on how to build a simple Cytoscape network and write its json representation to
stdout, and examples/web for the same network visualized with
Cytoscape.js. If pipelines in walrus is
your thing then have a look at examples/pipeline.
type Data struct {
Id string `json:"id,omitempty"`
Parent string `json:"parent,omitempty"`
Source string `json:"source,omitempty"`
Target string `json:"target,omitempty"`
Data map[string]interface{} `json:"data,omitempty"`
}