graph.js整合node和edge资源,对外提供访问接口
来源:互联网 发布:数据库原理视频专辑 编辑:程序博客网 时间:2024/06/03 04:27
/*
Class: Graph
A Graph Class that provides useful manipulation functions. You can find more manipulation methods in the <Graph.Util> object.
An instance of this class can be accessed by using the *graph* parameter of any tree or graph visualization.
Example:
(start code js)
//create new visualization
var viz = new $jit.Viz(options);
//load JSON data
viz.loadJSON(json);
//access model
viz.graph; //<Graph> instance
(end code)
Implements:
The following <Graph.Util> methods are implemented in <Graph>
- <Graph.Util.getNode>
- <Graph.Util.eachNode>
- <Graph.Util.computeLevels>
- <Graph.Util.eachBFS>
- <Graph.Util.clean>
- <Graph.Util.getClosestNodeToPos>
- <Graph.Util.getClosestNodeToOrigin>
*/
$jit.Graph = new Class({ initialize: function(opt, Node, Edge, Label) { this.Node = Node; //存储node的配置项 this.Edge = Edge; //存储edge的配置项 this.Label = Label; this.opt = $.merge(innerOptions, opt || {}); this.nodes = {}; //存储所有的nodes this.edges = {}; //存储所有的edges}, getNode: function(id) {}, getByName: function(name) {}, getAdjacence: function (id, id2) {}, addNode: function(obj) {}, addAdjacence: function (obj, obj2, data) {}, removeNode: function(id) {}, removeAdjacence: function(id1, id2) {}, hasNode: function(id) {}, empty: function() {}});
后续更新。。。。
- graph.js整合node和edge资源,对外提供访问接口
- graph.op.js定义和提供对node和edge的添加和删除、折叠和伸展操作
- Node, Edge and Graph Attributes
- 关于linux播放器madplay对外提供接口与界面整合的总结
- Spring整合Dubbo对外提供服务
- 模块对外提供接口 技巧总结
- java对外提供服务接口如何写?
- c#和node.js交互,edge库的使用,node.js执行c#代码
- Edge.js:让.NET和Node.js代码比翼齐飞(http://www.infoq.com/cn/articles/the_edge_of_net_and_node)
- 转载11:(译)Edge.js:让.NET和Node.js代码比翼齐飞
- 提供对外接口时,要注意的地方
- 微信小程序访问node.js接口服务器搭建教程
- Node.js所提供的JavaScript API整理和对比
- node.js 资源
- node.js学习资源
- Node.js 资源汇总
- 签到APP:android入门级小项目,Node.js 提供服务端接口
- node.js 访问webserver
- CodeForces 317 D.Game with Powers(博弈论)
- Java 多线程
- 安卓项目五子棋代码详解(五)
- git clone error: RPC failed; result=22, HTTP code = 502
- require(),include(),require_once()和include_once()区别
- graph.js整合node和edge资源,对外提供访问接口
- PHPWAMP好吗?phpwamp怎么用?PHPWAMP和其他集成环境有什么区别吗??
- sql server 过滤重复信息
- Java技术:Gif编码器(gifencoder)的实际应用(1)
- WebService的两种方式SOAP和REST比较
- JAVA数据结构和算法:第四章(HashMap和HashSet底层原理及实现)
- 安装nvm的过程小记录
- spark集群上运行helloworld程序--WordCount
- Android的通知(Notification)使用详解