Overview
Table of contents
Vis (interface)
a simple graph
Signature
interface Vis {
edges: Array<{
from: string
to: string
}>
nodes: Array<{
id: string
label: String
}>
}
Added in v0.2.0
IgnoreNames (constant)
Signature
export const IgnoreNames: string[] = ...
Added in v0.2.0
createVis (function)
Build Vis from Graph
Signature
export const createVis = (a: Graph): Vis => ({
nodes: pipe(
a.getAllVertices(),
A.map(a => ({ id: a.getKey(), label: a.toString() }))
),
edges: pipe(
a.getAllEdges(),
A.map(a => ...
Added in v0.2.0