code: function getInverse (s1, s2, vertex) {
    return (
      (s1.graphEdge.toVertex === vertex && s2.graphEdge.toVertex === vertex) ||
      (s1.graphEdge.toVertex === vertex && s2.graphEdge.fromVertex === vertex)
    ) ? -1 : 1
  }
docs: Helper functions *