Last active
May 1, 2016 23:31
-
-
Save keithwhor/edd064b6de0adc9d982f to your computer and use it in GitHub Desktop.
Joe likes Minecraft example
This file contains 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
let joe = {type: 'node', properties: {name: 'joe'}, input: [], output: []}; | |
let likes = {type: 'edge', properties: {name: 'likes'}, input: null, output: null}; | |
let minecraft = {type: 'node', properties: {name: 'minecraft'}, input: [], output: []}; | |
joe.output.push(likes); | |
likes.input = joe; | |
likes.output = minecraft; | |
minecraft.input.push(likes); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment