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
4 answers

Null pointer exception and objects

So here is my question.In my code I made an object ob, and I created a temp node just to point it to root node.So when I printed the data for temp ,as I expected I got NullPointerException. But after I assign data to root node , I again printed data…
Aniket Saxena
  • 43
  • 1
  • 6
1
vote
1 answer

Database query to filter data inside an object array

I have bunch of documents in the following format in my mongodb, I am using moongoose as ORM. Can some one help me make a query to get all the contents having the name=abc inside data-items.content Document 1: { "title": "Some title", "addresse":…
1
vote
3 answers

How to create a get Method with nodes off a generic type in java

I am implementing a cyclic DoublyLinkedList data structure. Like a singly linked list, nodes in a doubly linked list have a reference to the next node, but unlike a singly linked list, nodes in a doubly linked list also have a reference to the…
Adan Vivero
  • 422
  • 12
  • 36
1
vote
1 answer

How to fetch XML node based on value of sibling node?

I'm working on a .Net application for which I need to fetch values from a XML file based on the value of its sibling node's value.Eg: Here in the XML I want to fetch the values in Pages, Price & Author based on the title "Hansel and Gretel".
Tim Smith
  • 72
  • 7
1
vote
3 answers

Service Fabric certificate swap. Apps failing to activate

We have 5 Service Fabric nodes running 2 applications in 4 environments in Azure. Our Network team wanted to switch out our cluster certificate so they generated a new one (I believe in the key vault) and swapped it to primary. We updated our…
1
vote
3 answers

Cytoscape Compound node order of insertion

I'm working with cytoscape (cola layout) and dynamic (insertion/removal) compound nodes and I was having an issue with parent nodes not displaying correctly. I realised that parent nodes needed to be inserted before child nodes but I'm wondering if…
Gpharand
  • 11
  • 3
1
vote
0 answers

How can we remove a node in a LinkedList given only a pointer to the node AFTER it?

This is similar to the classic interview question of removing a middle node from a LinkedList given only a pointer to that node. Now, what if you were only given a pointer to the node that comes AFTER the node you want to delete? Is this even…
Peter
  • 31
  • 1
1
vote
2 answers

Getting errors with Node JS and React

i have a small question, I am working on a React.js and Node.js project, my project was working fine until I downloaded npm install atomic-layout --save My command: npm start (use to work before the download) I am getting this error: react-scripts…
1
vote
1 answer

node sequelize: can I upsert object array at once?

object array like [{id: 1, a: 1, b: 2}, {id: 2, a: 3, b:4}]. and I hope to upsert the array to database using sequelize upsert at once. can it support array or should use loop to do it?
dyh333
  • 385
  • 1
  • 5
  • 15
1
vote
2 answers

Why can't I access child node from body tag?

And I can't access div tag on body's child at [9] , [11] I use bd.firstChild, bd.childNodes[n] before but null always appears Insert title here