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
1 answer

Memory leak with linked list cut

I have now been struggling for this problem for hours and searched a lot on the web but could not find a solution. I created a linked list struct which has a struct node as head. Now I want to split my linked list at a specific given node,…
Stylo
  • 250
  • 1
  • 4
  • 12
1
vote
1 answer

What is the relationships between Parents, Nodes and Scenes?

I'm asking regarding the relationships between Nodes, Scenes and Parents. I'm actually studying JavaFX and is difficult change scenes in the same frame. I founded a way for do that, but actually I don't know how it works. Can you help me figure it…
AAA999
  • 73
  • 7
1
vote
0 answers

How do i print all the information correctly in the array?

I want to print out all the information from all the so called "Nodes", i don't know what i want to specify when i want to loop through all my "Nodes". it is important that it works with how many nodes as i want, I have tried almost all things i can…
Luddeb123
  • 57
  • 6
1
vote
2 answers

Issues with Binary TreeNode editing function

I'm having some trouble with my code. This function's purpose is to traverse through a binary tree and edit it such that branches from a certain point are replaced by new ones housed under the "newNode". Currently, it returns the same value for the…
user11043535
1
vote
2 answers

Handle Text Nodes That Are Not Script or Style Elements

I have this basic code to handle all text nodes: function walk (node) { if (node.nodeType == '3') { handleText (node) } node = node.firstChild while (node) { walk (node) node = node.nextSibling …
1
vote
1 answer

node.js -- provide direct link for google drive file

using another answer on this site, I was able to find this curl script: #!/bin/bash fileid="0Bz-w5tutuZIYY3h5YlMzTjhnbGM" filename="MyFile.tar.gz" curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null curl -Lb…
1
vote
1 answer

How to make my code simpler with database(mongodb)?

I'm usually working with java. I'm so confused that I used to code with node.js. Environment : express + mongoose When I try to use my data from database, I usually make my code with dao-pattern. If I suppose to call two of variables from each…
Richard
  • 351
  • 4
  • 17
1
vote
1 answer

Automatically sorting objects by fields when adding to Single Linked List?

I'm writing a Single Linked List that has the capability of sorting objects by a specific field as they are entered into the list. It's not adding everything, then sorting, but checking where it would be added before actually adding it. With this,…
Onefoot
  • 17
  • 6
1
vote
1 answer

Angular-ui-tree shows an extra line when last child has children

I have tried different CSS tricks and hacks but can't seem to get my way around this. So, I have a UI tree with connectors as shown in below: https://jsfiddle.net/jqaw41mo/ div.panel:first-child { margin-top: 20px; } div.treeview { …
S.Raza
  • 13
  • 4
1
vote
1 answer

Difference between node.prev.next = ... and node =

For the code shown, what exactly would the difference be. From my understanding it should return the current.data value and change the pointer for current to current.next for both. Additionally, can anyone explain the intricacies of…
ivnM
  • 157
  • 1
  • 1
  • 7
1
vote
1 answer

Excluding a single element in XSLT when using document()

I'm using document() to copy the content of an XML file (tagged for DITA) into a variable. Here is the code I had used previously that worked: Now, I…
1
vote
3 answers

Trouble with appending childNodes

I'm building a to-do list. Almost everything works; new to-dos gets pushed to top, when "X" button is clicked, the to-do is gone. My problem is that I couldn't get a new todo created with the delete "X" on the right hand side. My full codes are…
Paddlepop
  • 25
  • 5
1
vote
1 answer

Node Tool Locations do not save properly in Jenkins

I am running a DSL script that prints all connected nodes in Jenkins and sets for each of them the Git tool location on the slave. import hudson.tools.* import hudson.slaves.* import jenkins.model.Jenkins def jenkins = Jenkins.instance def…
amicl
  • 11
  • 2
1
vote
1 answer

Finding parent nodes based on double value of child node in XPath

I'm writing an XPath query to run against my JCR. I must retrieve all parent nodes of a certain type in a certain directory that also have a specific child node with a double property within a given range. I've successfully filtered the directory…
Nicholas
  • 918
  • 1
  • 8
  • 14
1
vote
2 answers

how to insert an array on the node of the linked list

I have a problem while I'm trying to put an array of Strings on the Node of the LinkedList and this is the code which I have used. public class Node { public Node next ; public String[] data; public Node (Node next ) { …