@woosh/meep-engine 2.77.0 → 2.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/meep.cjs CHANGED
@@ -70697,6 +70697,14 @@ class NodeContainer {
70697
70697
  */
70698
70698
  __neighbors = new Map();
70699
70699
 
70700
+ /**
70701
+ * NOTE: this method allocates memory internally
70702
+ * @returns {N[]}
70703
+ */
70704
+ get neighbours() {
70705
+ return Array.from(this.__neighbors.keys());
70706
+ }
70707
+
70700
70708
  /**
70701
70709
  *
70702
70710
  * @return {number}
@@ -70714,7 +70722,7 @@ class NodeContainer {
70714
70722
  }
70715
70723
 
70716
70724
  /**
70717
- *
70725
+ * NOTE: this method allocates memory internally
70718
70726
  * @returns {N[]}
70719
70727
  */
70720
70728
  get inNodes() {
@@ -70722,7 +70730,7 @@ class NodeContainer {
70722
70730
  }
70723
70731
 
70724
70732
  /**
70725
- *
70733
+ * NOTE: this method allocates memory internally
70726
70734
  * @returns {N[]}
70727
70735
  */
70728
70736
  get outNodes() {
@@ -70730,6 +70738,10 @@ class NodeContainer {
70730
70738
  }
70731
70739
 
70732
70740
 
70741
+ /**
70742
+ * NOTE: this method allocates memory internally
70743
+ * @returns {Edge<N>[]}
70744
+ */
70733
70745
  get outEdges() {
70734
70746
  /**
70735
70747
  *
@@ -70742,6 +70754,10 @@ class NodeContainer {
70742
70754
  return result;
70743
70755
  }
70744
70756
 
70757
+ /**
70758
+ * NOTE: this method allocates memory internally
70759
+ * @returns {Edge<N>[]}
70760
+ */
70745
70761
  get inEdges() {
70746
70762
  /**
70747
70763
  *
@@ -71157,6 +71173,14 @@ class Graph {
71157
71173
  return container.getEdgeCount();
71158
71174
  }
71159
71175
 
71176
+ /**
71177
+ *
71178
+ * @returns {N[]}
71179
+ */
71180
+ get nodes() {
71181
+ return Array.from(this.getNodes());
71182
+ }
71183
+
71160
71184
  /**
71161
71185
  * Do not modify this set directly
71162
71186
  * @return {Iterable<N>}
@@ -71362,6 +71386,21 @@ class Graph {
71362
71386
  return edge_count;
71363
71387
  }
71364
71388
 
71389
+ /**
71390
+ *
71391
+ * @param {N} node
71392
+ * @returns {N[]}
71393
+ */
71394
+ getNeighbours(node) {
71395
+ const container = this.__nodes.get(node);
71396
+
71397
+ if (container === undefined) {
71398
+ return [];
71399
+ }
71400
+
71401
+ return container.neighbours;
71402
+ }
71403
+
71365
71404
  /**
71366
71405
  *
71367
71406
  * @param {N} node