bbop-graph
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -26,9 +26,3 @@ /** | ||
/** | ||
* Variable: default_predicate | ||
* | ||
* The predicate we'll use when none other is defined. You can | ||
* probably safely ignore this if all of the edges in your graph are | ||
* the same. | ||
*/ | ||
// Common point for assigning the defaul predicate in here. | ||
var default_predicate = 'points_at'; | ||
@@ -136,2 +130,11 @@ | ||
/** | ||
* The predicate we'll use when none other is defined. You can | ||
* probably safely ignore this if all of the edges in your graph are | ||
* the same. | ||
* | ||
* @variable | ||
*/ | ||
this.default_predicate = default_predicate; | ||
// Either a string or a node. | ||
@@ -154,3 +157,3 @@ if( ! subject ){ | ||
// Predicate default or incoming. | ||
this._predicate_id = default_predicate; | ||
this._predicate_id = this.default_predicate; | ||
if( predicate ){ | ||
@@ -246,2 +249,11 @@ this._predicate_id = predicate; | ||
/** | ||
* The predicate we'll use when none other is defined. You can | ||
* probably safely ignore this if all of the edges in your graph are | ||
* the same. | ||
* | ||
* @variable | ||
*/ | ||
this.default_predicate = default_predicate; | ||
this._id = undefined; | ||
@@ -470,3 +482,3 @@ | ||
if( ! pred ){ pred = default_predicate; } | ||
if( ! pred ){ pred = this.default_predicate; } | ||
@@ -987,3 +999,2 @@ var ret_edge = null; | ||
default_predicate: default_predicate, | ||
node: node, | ||
@@ -990,0 +1001,0 @@ edge: edge, |
{ | ||
"name": "bbop-graph", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"license": "BSD-3-Clause", | ||
@@ -57,4 +57,5 @@ "description": "General purpose (mathematical) graph library in JavaScript.", | ||
"scripts": { | ||
"update-docs": "git checkout gh-pages && git pull && git merge master && gulp doc && git commit -a -m 'bump docs' && git push && git checkout master", | ||
"test": "./node_modules/.bin/gulp test" | ||
} | ||
} |
@@ -15,2 +15,2 @@ # bbop-graph | ||
[index](https://berkeleybop.github.io/bbop-graph/docs/index.html) | ||
[index](https://berkeleybop.github.io/bbop-graph/doc/index.html) |
@@ -61,3 +61,3 @@ //// | ||
assert.equal(model.default_predicate, e1.predicate_id(), 'is p'); | ||
assert.equal(e1.default_predicate, e1.predicate_id(), 'is p'); | ||
assert.equal('foo', e2.predicate_id(), 'is p 2'); | ||
@@ -102,3 +102,3 @@ | ||
dpred = model.default_predicate; | ||
dpred = g.default_predicate; | ||
}); | ||
@@ -105,0 +105,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6267252
25228
22