【文件属性】:
文件名称:giraph:不可变的图数据结构
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-29 14:01:35
JavaScript
长颈鹿
不可变的图数据结构
安装
npm install -S giraph
bower install -S giraph
用法
require ( 'giraph' ) ( )
. add ( 'a' , { my : 'data' } )
. add ( 'b' )
. add ( 'c' )
. connect ( 'a' , 'b' , 3 )
. connect ( 'a' , 'c' )
文档
Giraph 带有许多不同的图形类型:
无向图
在根名称空间上作为工厂函数导出:
.([options])
选项和默认值
{
immutable : true
}
require ( 'giraph' ) ( ) // => empty graph
无向图具有以下成员
属性: .map: {}
按ID散列顶点。
属性: .options
【文件预览】:
giraph-master
----lib()
--------utils.js(298B)
--------directed-graph.js(356B)
--------vertex.js(788B)
--------directed-acyclic-graph.js(0B)
--------graph.js(6KB)
----gulpfile.js(2KB)
----test()
--------public()
--------test.js(7KB)
----README.md(4KB)
----.gitignore(54B)
----index.js(291B)
----package.json(776B)