https://github.com/parmentf/node-file-concept-network
ConceptNetwork with file persistance.
https://github.com/parmentf/node-file-concept-network
Last synced: 9 months ago
JSON representation
ConceptNetwork with file persistance.
- Host: GitHub
- URL: https://github.com/parmentf/node-file-concept-network
- Owner: parmentf
- License: mit
- Created: 2013-01-18T23:06:37.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2018-01-22T16:59:05.000Z (about 8 years ago)
- Last Synced: 2024-08-03T09:03:14.015Z (over 1 year ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# file-concept-network [](http://travis-ci.org/parmentf/node-file-concept-network) [](http://badge.fury.io/js/file-concept-network)
Concept Network is weighted directed graph, in which activation values are propagated. Written in [Node.js](http://nodejs.org).
File Concept Network is the version with file system persistence.
## Getting Started
Install the module with: `npm install file-concept-network`
```javascript
var FileConceptNetwork = require('file-concept-network').FileConceptNetwork;
var fcn = new FileConceptNetwork();
var node1 = fcn.addNode("ECTOR");
var node2 = fcn.addNode("knows");
var node3 = fcn.addNode("Achille");
fcn.addLink(node1.id, node2.id);
fcn.addLink(node2.id, node3.id);
fcn.save('cn.json', function (err) {
if (err) {
console.error(err);
}
});
```
## Documentation
_(Coming soon)_
## Examples
_(Coming soon)_
## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint, and test your code using [mocha](http://mochajs.org/).
## Release History
* 2014/08/07: version 0.1.2: treat error cases
* 2013/01/25: version 0.1.1: fix npm module
* 2013/01/19: version 0.1.0
## License
Copyright (c) 2013 François Parmentier
Licensed under the MIT license.