Created
July 21, 2015 19:21
-
-
Save keithwhor/c13d0889f70ba6d1b77c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create nodes... | |
let joe = new Node('person'); | |
joe.set('name', 'Joe'); | |
let minecraft = new Node('game'); | |
minecraft.set('name', 'Minecraft'); | |
// Create edge... | |
let likes = new Edge('likes'); | |
// link 'em! | |
likes.link(joe, minecraft); | |
// add more nodes... | |
let notch = new Node('person', {name: 'Notch'}); | |
let created = new Edge('created').link(notch, minecraft); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment