https://github.com/parmentf/browser-concept-network
The browserified version of node-concept-network.
https://github.com/parmentf/browser-concept-network
Last synced: 7 months ago
JSON representation
The browserified version of node-concept-network.
- Host: GitHub
- URL: https://github.com/parmentf/browser-concept-network
- Owner: parmentf
- License: mit
- Created: 2013-01-13T15:36:42.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-01-16T21:16:06.000Z (about 13 years ago)
- Last Synced: 2024-04-09T01:30:34.058Z (almost 2 years ago)
- Language: JavaScript
- Size: 453 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# Concept Network
The browserified ([browserify](https://github.com/substack/node-browserify/)) version of [node-concept-network](https://github.com/parmentf/node-concept-network).
Concept Network is a weighted directed graph, in which activation values are propagated. Written in [Node.js](http://nodejs.org).
browser-concept-network allows its use within a web browser.
## Installation
### Get the files
Download the files: https://github.com/parmentf/browser-concept-network/archive/master.zip
Or clone the repository:
```bash
git clone https://github.com/parmentf/browser-concept-network.git
```
### Try it
Then, drag and drop file ``browser-concept-network/cn.html`` into your browser
(tested in Google Chrome 23, Firefox 18 and Chromium 20 ?).
### Put it in another application
Import `js/bundle-concept-network.min.js`, `js/jquery-1.8.3.min.js`,
`js/mustache.min.js`, and `js/concept-network.js` into your HTML page.
Take a look at ``concept-network.js`` and ``cn.html``, and adapt it to your
web application.
The important part is:
```javascript
var ConceptNetwork = require('concept-network').ConceptNetwork;
cn = new ConceptNetwork();
```
Warning: until it is fixed, you have to write instead:
```javascript
var ConceptNetwork = require('/home/francois/dev/browser-concept-network/lib/concept-network').ConceptNetwork;
cn = new ConceptNetwork();
```
## Demonstration
You can take a look at [the demonstration](http://parmentf.github.com/browser-concept-network/cn.html)
or drop the `cn.html` file on your browser.
For now, you can only load a Concept Network generated by [ECTOR's
demonstration](http://parmentf.github.com/browser-ector/ector.html) and
visualize their nodes.
## Development
When a new version of [node-concept-network](https://github.com/parmentf/node-concept-network)
is available, and you want to update version 0.1.0 to 0.1.1, use these steps:
```bash
npm update concept-network
make version v=0.1.1
vi README.md
make index.html
git commit -a
make publish
```
For publishing the page on github, use:
```bash
git checkout gh-pages
git merge master
git push
git checkout master
```
## Release History
* 2013/01/15: version 0.1.2: Nodes displayed in a JQuery DataTables
* 2013/01/13: version 0.1.1: Demonstration initialized
* 2013/01/13: version 0.1.0: Initial release
## License
Copyright (c) 2013 François Parmentier
Licensed under the MIT license.