You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://gitter.im/Encapsule/jsgraph?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
3
+
# Encapsule/jsgraph
4
4
5
-
## About jsgraph
5
+

6
6
7
7
_"... At the other end of the spectrum is, for example, graph theory, where the basic object, a graph, can be immediately comprehended. One will not get anywhere in graph theory by sitting in an armchair and trying to understand graphs better. Neither is it particularly necessary to read much of the literature before tackling a problem: it is of course helpful to be aware of some of the most important techniques, but the interesting problems tend to be open precisely because the established techniques cannot easily be applied."_ - [W.T. Gowers](https://en.wikipedia.org/wiki/Timothy_Gowers)
8
8
9
-
###Status
9
+
[](https://travis-ci.org/Encapsule/jsgraph)[](https://gitter.im/Encapsule/jsgraph?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
@@ -61,7 +127,7 @@ If you're considering using jsgraph in a commerical product, please get in touch
61
127
In your project, install via npm.
62
128
63
129
$ npm install jsgraph --save
64
-
jsgraph@0.6.xx node_modules/jsgraph
130
+
jsgraph@0.7.xx node_modules/jsgraph
65
131
66
132
### Sources
67
133
@@ -86,7 +152,7 @@ See also: [Encapsule/jsgraph on GitHub](https://github.com/Encapsule/jsgraph)
86
152
87
153
## Example
88
154
89
-
The following short example constructs a `DirectedGraph` container using a v0.6 jsgraph digraph data object, and derives a simple rank assignment algorithm from jsgraph's bundled `breadthFirstTraverse` algorithm. Note that the BFT visitor interface callback functions leverage the `DirectedGraph` API to get/set the data property value of each visited vertex to its rank.
155
+
The following short example constructs a `DirectedGraph` container using a v0.7 jsgraph digraph data object, and derives a simple rank assignment algorithm from jsgraph's bundled `breadthFirstTraverse` algorithm. Note that the BFT visitor interface callback functions leverage the `DirectedGraph` API to get/set the data property value of each visited vertex to its rank.
**v0.7 is a breaking API change and documentation release**
258
+
259
+
- Added new method `DirectedGraph.stringify`
260
+
- Changed method semantics of `DirectedGraph.toJSON` to return a serializable object instead of a JSON-encoded string.
261
+
- Alias method `DirectedGraph.toObject` to call `DirectedGraph.toJSON`. The `toObject` method is now deprecated and will be removed in a future release.
262
+
- Updated documentation:
263
+
- Per above breaking changes to the `DirectedGraph` serialization API.
264
+
- Added additional information on set/get of `DirectedGraph` name and description properties.
265
+
191
266
**v0.6 is a bug fix release that's API-compatible with v0.5**
192
267
193
268
- DFT algorithm bug fixes impacting order and identity of client visitor callbacks.
@@ -349,7 +424,7 @@ A depth-first traversal concludes when all reacable vertices have been visited,
0 commit comments