Skip to content

Instantly share code, notes, and snippets.

@keithwhor
Last active May 1, 2016 23:31
Show Gist options
  • Save keithwhor/edd064b6de0adc9d982f to your computer and use it in GitHub Desktop.
Save keithwhor/edd064b6de0adc9d982f to your computer and use it in GitHub Desktop.
Joe likes Minecraft example
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