JavaScript, Graph Theory, Startup.
but our node and edge constructors (via object literals) are pretty heavy. We can simplify this with object orientation. Let’s introduce some prototypes via the ES6 Class semantics. First, we’ll define a base prototype for shared behavior between Nodes and Edges. Let’s call it a Unit, because