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
18
votes
8 answers

How can I remove all nodes from a scenekit scene?

Hi I am trying to remove all nodes from my Scenekit scene but I cannot for the life of me figure out a way. It seems logical to me that there must be a function for doing this automatically but I cannot find it. In context, I am trying to remove…
Tim Andrews
  • 827
  • 1
  • 7
  • 21
18
votes
4 answers

Add new attributes to an existing XML node in java?

I want to add an attribute to an existing xml node.I don't want to add new elements (new nodes) to my xml file, I just want to add a new attribute. How can I do this? In particular I've tried this lines of code: Element process =…
user2966458
  • 181
  • 1
  • 1
  • 5
18
votes
5 answers

Create node list from a single node in JavaScript

This is one of those it seems so simple, but I cannot come up with a good way to go about it. I have a node, maybe nodelist = document.getElementById("mydiv"); - I need to normalize this to a node list. And not an array either: an actual, bona-fide…
Randy Hall
  • 7,716
  • 16
  • 73
  • 151
17
votes
7 answers

Apollo GraphQL Server + TypeScript

I've been working on a project lately, which has node.js + express + typescript + Apollo server stack. And while researching on Apollo client, I've stumbled upon TypeScript section. But nothing like that was for server, which leaves me to freedom of…
naffiq
  • 1,030
  • 1
  • 9
  • 19
17
votes
1 answer

Get graphviz to draw nodes above edges

Is there any way to force graphviz to always draw the nodes above edges even if the edge is drawn over (or preferably under) the node? So far I have tried ordering them and different layer options but not found a way that works.
Anders
  • 171
  • 1
  • 4
17
votes
6 answers

How To Develop A Database Schema For A Tree Structure(Directed acyclic graph)

I'm using below tree structure and planning to develop a db schema for the below. What I have development up to now is below, The problem I'm having is if I search for Y, below tree should be generated. Logic I'm using is, Y has two cross…
Techie
  • 44,706
  • 42
  • 157
  • 243
16
votes
4 answers

failed to garbage collect required amount of images. Wanted to free 6283487641 bytes, but freed 0 bytes

I have searched many websites and articles but not found any perfect answer. I am using eks version 1.18. I can see a few of the pods are "Evicted", but when trying to check the node I can see the error "(combined from similar events): failed to…
JDGuide
  • 6,239
  • 12
  • 46
  • 64
16
votes
6 answers

hadoop/hdfs/name is in an inconsistent state: storage directory(hadoop/hdfs/data/) does not exist or is not accessible

I have tried all the different solutions provided at stackoverflow on this topic, but of no help Asking again with the specific log and the details Any help is appreciated I have one master node and 5 slave nodes in my Hadoop cluster. ubuntu user…
Tariq
  • 2,274
  • 4
  • 24
  • 40
15
votes
3 answers

How to keep Nil from reverting container to its default value?

I'm implementing a simple linked list and to denote the fact that there is no next node, I'm using the value Nil. The thing is that when assigned to a container, Nil will attempt to revert the container to its default value which means I need to use…
uzluisf
  • 2,586
  • 1
  • 9
  • 27
15
votes
4 answers

Algorithm for finding all of the shared substrings of any length between 2 strings, and then counting occurrences in string 2?

I've run into an unusual challenge and so far I'm unable to determine the most efficient algorithm to attack this. Given the following 2 strings as an example, find all commonly shared substrings between the 2 strings of any length, and count the…
Braydon Batungbacal
  • 1,028
  • 2
  • 24
  • 52
15
votes
3 answers

Is there a way to take away focus in javafx?

I know that your can give focus to a node in javafx by doing node.requestFocus(); but is there a way to take away focus from a node in javafx or prevent focus on an object?
sazzy4o
  • 3,073
  • 6
  • 34
  • 62
14
votes
1 answer

How to make kubernetes work with dynamic ip address

I have created a kubernetes cluster where I have a master node and two worker nodes. I initialised master node using below command sudo kubeadm init --token-ttl=0 --apiserver-advertise-address=192.168.0.27 192.168.0.27 is the ip address of master…
S Andrew
  • 5,592
  • 27
  • 115
  • 237
14
votes
3 answers

How to use user-defined class object as a networkx node?

Class point is defined as (there are also some methods, atributes, and stuff in it, but this is minimal part): class point(): def ___init___(self, x, y): self.x = x self.y = y So, I saw this question, but when I tried applying…
Luka Petrović
  • 329
  • 3
  • 9
14
votes
1 answer

Creating a node class in Java

So I'm fairly new to Java and programming and I was wondering how to create a node class? So far I have: public class ItemInfoNode{ private ItemInfoNode next; private ItemInfoNode prev; private ItemInfo info; public…
John
  • 153
  • 2
  • 3
  • 12
14
votes
1 answer

Distribute nodes on the same rank of a wide graph to different lines

I have a graph (organigram) how this: digraph G { nodesep=0.3; ranksep=0.2; margin=0.1; node [shape=rectangle]; edge [arrowsize=0.8]; 1 -> 2; 1 -> 3; 1 -> 4; 1 -> 5; 1 -> 6; 1 -> 7; 1 -> 8; 1 -> 9; 1 -> 10; } I have organigrams with 70 people and…
hazardco
  • 387
  • 1
  • 4
  • 13