Questions tagged [nodes]

Nodes are the basic units used to build data structures such as linked lists and trees.

A node is a record consisting of one or more fields that are links to other nodes, and a data field. The link and data fields are often implemented by pointers or references although it is also quite common for the data to be embedded directly in the node.

Nodes are used to build linked data structures such as , , and . Large and complex data structures can be formed from groups of interlinked nodes. Nodes are conceptually similar to vertices, which are elements of a graph. Software is said to have a node graph architecture when its organization consists of interlinked nodes.

http://en.wikipedia.org/wiki/Node_(computer_science)

6243 questions
1
vote
3 answers

Equals method to compare two tree's

just another slight problem. I must also create an equals method for my IntTree class which cycles through two tree's and compares the nodes. If all of the values in the tree are equal, then it returns true, otherwise it returns false. Here is the…
Shane
  • 61
  • 2
  • 5
1
vote
2 answers

XPath select only one node from multiple randomly

In SOAPUI i have a JDBC Request step with the next result: 1963 444 229
1
vote
1 answer

NodeJs - Check if child process started successfully

I have a script Start.js which is starting another script Server.js using shelljs. Server.js contains a express server which should run at process.env.PORT. Start.js should print out if the server was started correctly or not. const process =…
kpalatzky
  • 1,213
  • 1
  • 11
  • 26
1
vote
1 answer

React Scroll like page turn or scroll certain amount once time

How can I prevents default scrolling and automatically scroll to next item? For an instance, I have element2 under element1, how can I scroll to element2 position when I scroll down once instead scroll a little bit down. Or is there any way to…
Huaxin Zhang
  • 53
  • 1
  • 8
1
vote
1 answer

Displaying 1st node of a linked list

I was able to get the first value of the linked list but It only works in this scenario. How is it possible to make the getFirst() able to work for any number of values stored in the linked list? This program outputs: First Number is --> 1 public…
iSlickBro
  • 19
  • 4
1
vote
1 answer

compute numbers of leaf in rpart

i use rpart run a regression tree library(MASS) N = 1000 episolon = rnorm(N, 0, 0.01) x1 = rnorm(N, 0, sd=1) x2 = rnorm(N, 0, sd=1) eta_x = 1/2*x1+x2 Kappa_x = 1/2*x1 w = rbinom(N, 1, 0.5) treatment = w makeY = function(eta, Kappa){ Y =…
陳寧寬
  • 33
  • 8
1
vote
0 answers

Hyperledger Fabric maximum number of peers

I am looking for the scalability limits of Hyperledger Fabric v 1.2 in terms of maximum number of peer nodes. I found some test results that claim maximum 26 for Fabric 1.0. I understand that more nodes will not increase number of concurrent…
Viktor
  • 685
  • 2
  • 7
  • 11
1
vote
3 answers

Retrieving data from a ZIP File - NodeJS

I asked myself a question, I can read files (csv mainly) on a cloud platform but when it's a zip I just get a bunch of: j�\lȜ��&��3+xT��J��=��y��7���vu� {d�T���?��!� Which is normal, so I wonder if there is a way to put that in a variable and…
Quentin_otd
  • 233
  • 1
  • 3
  • 16
1
vote
1 answer

How to add new nodes in between two existing nodes

I have the following Graph created in MATLAB function dummyGraph() tail = [1 2 3 4 5 6 6 7 8 9 10 10 12 13 14 15]; head = [2 3 4 5 6 7 12 8 9 10 15 11 13 14 15 16]; Graph = graph(tail,head) plot(Graph) NodeNumber = 1:16 Neighbor={}; for NodeIdx…
Natasha
  • 1,111
  • 5
  • 28
  • 66
1
vote
1 answer

Converting a pandas nodes and edges list from node labels to node index

I have a tidy representation of a graph or network expressed as two separate csvs; one for nodes, one for edges with weights. I've read them from csv into pandas dataframes in Python 3. I create some analogous dataframes using different methods…
mammykins
  • 355
  • 3
  • 9
1
vote
2 answers

implementing node using typedef vs not using typedef

I'm not sure if I understood the concept of typedef... Say there are two different ways of implementing nodes: one using typedef and another not using typedef. For example: There's a node that was implemented like this: where a file named node1.c…
yunkim
  • 17
  • 3
1
vote
1 answer

(Python) Networkx - How to set own positions for nodes with pos variable

my output of print G.nodes(data=True) is: [('Bytes:\n620', {}), ('dIP:\n178.237.19.228', {}), ('sPort:\n2049', {}), ('sPort:\n60179', {}), ('sIP:\n16.37.97.29', {}), (153, {}), ('dPort:\n443', {}), ('dPort:\n80', {}), ('Packets:\n2', {}),…
QWERASDFYXCV
  • 245
  • 1
  • 6
  • 15
1
vote
1 answer

Finding a common node with key between two different BinarySearchTrees

I am currently trying to write methods that checks all the nodes in two different Binary Search trees and find nodes with common keys between the two trees. (i.e. trying to find a node from tree 1 and a node from tree 2 that contains the same keys.…
Pengibaby
  • 373
  • 2
  • 11
1
vote
1 answer

How to post data to .json file using postman in node js

Can anyone change below node is code as per expected output as I mentioned below. I post it using client API My output: [ { "name": "alpha", "password": "beta", "id": 5 } ] { …
Dark Ninja
  • 149
  • 2
  • 13
1
vote
1 answer

Correct way to delete a node in doubly circular linked list

The purpose of this code is to manage insertion and deletion and visualisation. I just want to know if I'm doing everything correctly, let me know if there are more possible ways to do this. This is my first attempt, i didn't follow any…
1 2 3
99
100