Skip to content

Instantly share code, notes, and snippets.

View MGrin's full-sized avatar
I'm a bear, deal with it

MGrin MGrin

I'm a bear, deal with it
View GitHub Profile
MGrin / graph.js
Created July 27, 2017 13:16
Function to transform a relational entity to a Graph entity
export class Graph {
static merge = (g1, g2) => {
const mergedNodes = { ...g1.nodes, ...g2.nodes };
let mergedEdges = {};
const g2Edges = {

Keybase proof

I hereby claim:

  • I am mgrin on github.
  • I am mgrin ( on keybase.
  • I have a public key ASApbAOyYesqKFcbeU7gk3CHiqbTc6vi3WcD20NGYh0-KAo

To claim this, I am signing this object: