cytoscape

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package cytoscape visualize resource graph

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cytoscape

type Cytoscape struct {
	// contains filtered or unexported fields
}

Cytoscape visualization library

func NewCytoscapa

func NewCytoscapa(st storage.Storage) *Cytoscape

NewCytoscapa construct cytoscape

func (*Cytoscape) Display

func (c *Cytoscape) Display() (string, error)

Display generate resource graph and return html page

type Edge

type Edge struct {
	Data EdgeData `json:"data"`
}

Edge hold edge information

type EdgeData

type EdgeData struct {
	Source string `json:"source"`
	Target string `json:"target"`
}

EdgeData holds edge data

type Elements

type Elements struct {
	Nodes []Node `json:"nodes"`
	Edges []Edge `json:"edges"`
}

Elements holds elements

type Node

type Node struct {
	Data NodeData `json:"data"`
}

Node holds node

type NodeData

type NodeData struct {
	ID    string `json:"id"`
	Label string `json:"label"`
}

NodeData holds node data

type PageData

type PageData struct {
	Elements  Elements
	InlineCSS template.HTMLAttr
}

PageData hold page data

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL