Esempio n. 1
0
 removeItem: function (item) {
     delete this.idx[item.__hpcc_id];
     if (item instanceof Subgraph) {
         this.subgraphs = arrayUtil.filter(this.subgraphs, function (subgraph) {
             return item !== subgraph;
         }, this);
     } else if (item instanceof Vertex) {
         this.vertices = arrayUtil.filter(this.vertices, function (vertex) {
             return item !== vertex;
         }, this);
     } else if (item instanceof Edge) {
         this.edges = arrayUtil.filter(this.edges, function (edge) {
             return item !== edge;
         }, this);
     }
 },
Esempio n. 2
0
 getOutEdges: function () {
     return arrayUtil.filter(this.__hpcc_graph.edges, function (edge) {
         return edge.getSource() === this;
     }, this);
 }
Esempio n. 3
0
 removeEdge: function (edge) {
     this.__hpcc_edges = arrayUtil.filter(this.__hpcc_edges, function (edge2) {
         return edge !== edge2;
     }, this);
 },
Esempio n. 4
0
 getInEdges: function () {
     return arrayUtil.filter(this.__hpcc_graph.edges, function (edge) {
         return edge.getTarget() === this;
     }, this);
 },
Esempio n. 5
0
 removeVertex: function (vertex) {
     this.__hpcc_vertices = arrayUtil.filter(this.__hpcc_vertices, function (vertex2) {
         return vertex !== vertex2;
     }, this);
 },