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

different between "getDocumentElement" and "getFirstChild"

I have the following Document object - Document myDoc. myDoc holds an XML file by... myDoc = DocumentBuilderFactory.newInstance() .newDocumentBuilder().parse(file); Now I want to get the root of the XML file. Is there any difference…
URL87
  • 10,667
  • 35
  • 107
  • 174
13
votes
1 answer

Select child nodes based on their contents

XML snippet: foo bar
baz
bar
How do I select all the child nodes of that have bar as its contents? In the example above, I'd want to select and . I'm thinking the solution is…
krasnaya
  • 2,995
  • 3
  • 21
  • 19
13
votes
2 answers

Mongoose/Mongo find in array of objectIds

I have this item in mongo: [ { title: 'Product Name', _id: 5052843e023273693300013c, description: 'This is a fake description', categories: [ 5052843e023273693300010a ], } ] I want to find products like this that have this…
cyberwombat
  • 38,105
  • 35
  • 175
  • 251
13
votes
1 answer

Adjusting the node size in igraph using a matrix

I have the following network diagram: set.seed(1410) df<-data.frame( "site.x"=c(rep("a",4),rep("b",4),rep("c",4),rep("d",4)), "site.y"=c(rep(c("e","f","g","h"),4)), "bond.strength"=sample(1:100,16,…
Elizabeth
  • 6,391
  • 17
  • 62
  • 90
12
votes
3 answers

The non-generic type 'System.Collections.IEnumerable' cannot be used with type arguments

using System.Collections.Generic; public sealed class LoLQueue where T: class { private SingleLinkNode mHe; private SingleLinkNode mTa; public LoLQueue() { this.mHe = new SingleLinkNode(); this.mTa =…
Danpe
  • 18,668
  • 21
  • 96
  • 131
12
votes
3 answers

Networkx neighbor set not printing

I have a little problem with my networkx code. I am trying to find all the neighbors from a node in a graph, but.... neighbor = Graph.neighbors(element) print(neighbor) outputs: Instead of all the neighbors…
Joep Groentesoep
  • 165
  • 2
  • 10
12
votes
2 answers

Running a stored procedure with NodeJS and MSSQL package error

Im trying to get the MSSQL nodejs package to return the results of a stored procedure from Microsoft SQL server using the code below. However the error I get is... [TypeError: Cannot read property 'type' of undefined] I'm not sure I have done the…
Adam91Holt
  • 1,018
  • 1
  • 14
  • 28
12
votes
1 answer

Gephi not showing Nodes & Edges on graph

It's been awhile since I've used Gephi, but I used to be pretty familiar with everything in v 0.8.xx. I just loaded node & edge files into a brand-new installation of v0.9.0. They show up fine in the data lab & the context menu shows they exist.…
CCapra
  • 139
  • 1
  • 1
  • 4
12
votes
1 answer

Model.findOne not returning docs but returning a wrapper object

I have defined a Model with mongoose like this: var mongoose = require("mongoose") var Schema = mongoose.Schema var userObject = Object.create({ alias: String, email: String, password: String, updated: { type: Date, …
jsdario
  • 6,477
  • 7
  • 41
  • 75
12
votes
2 answers

networkx - change node size based on list or dictionary value

I'm trying to make a graph in networkx. I'm having trouble assigning different node sizes to the nodes. Here is my code I've been playing with: import sys from collections import defaultdict import networkx as nx import matplotlib.pyplot as…
st.ph.n
  • 549
  • 2
  • 5
  • 19
12
votes
5 answers

Is the root node an internal node?

So I've looked around the web and a couple of questions here in stackoverflow here are the definition: Generally, an internal node is any node that is not a leaf (a node with no children) Non-leaf/Non-terminal/Internal node – has at least one child…
jantristanmilan
  • 4,188
  • 14
  • 53
  • 69
11
votes
1 answer

zend custom module

I am trying to build my own zend module (.so) We have multiple functionality that can be done in our own module which will improve our performance on a high traffic website (50k+ visits a day). These are simple module but I was wondering is the…
Erin Tucker
  • 3,274
  • 2
  • 15
  • 22
11
votes
3 answers

npm install node-sass@3.7.0 generates -Wrange-loop-analysis issues

I'm trying to install node-sass v3.7.0 by running npm install node-sass@3.7.0. The install seems to be working at first, and then I get this dump repeatedly: 2 warnings…
yalpsid eman
  • 3,064
  • 6
  • 45
  • 71
11
votes
3 answers

What is a "Node" in JavaFx/FXML?

What is meant by the word "Node" within context of JavaFx/FXML? If I search for this question, all I find are people using the term discussing something else, but no explanation. For example, this answer to the question: How do I open the JavaFX…
Sargon1
  • 854
  • 5
  • 17
  • 48
11
votes
1 answer

How can I stop the movement of the nodes in Neo4j?

I'm using Neo4j with webadmin interface. When I run a query I display the nodes and relationships graphically. However, whenever I move a node, the other nodes connected to it move too. How can I stop this "force-attraction" effect? Thank you very…
RioMario
  • 121
  • 1
  • 5