Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between a node and a vertex?

What is the difference (if any) between a node and a vertex? I can't find the answer after looking at countless sites! Even my book doesn't specify it so I am kind of lost!

It is worth mentioning that I am looking for the difference besides the fact that it is called a 'vertex' when used in a graph and a 'node' when used in a tree.

like image 944
Marc Rasmussen Avatar asked Jan 01 '13 15:01

Marc Rasmussen


People also ask

Is it a node or vertex in a tree?

Elements of trees are called their nodes. The nodes without child nodes are called leaf nodes. A tree with 'n' vertices has 'n-1' edges. If it has one more edge extra than 'n-1', then the extra edge should obviously has to pair up with two vertices which leads to form a cycle.

What is the difference between vertices and vertex?

Vertices in shapes are the points where two or more line segments or edges meet (like a corner). The singular of vertices is vertex. For example a cube has 8 vertices and a cone has one vertex. Vertices are sometimes called corners but when dealing with 2D and 3D shapes, the word vertices is preferred.

What are nodes in a graph?

The nodes in a graph represent persons (or animals, organizations, cities, countries, etc) and the lines represent relationships among them. The line between persons a and b is represented mathematically like this: (a,b).

What is a vertex in GIS?

Vertices are used to define the shape and location of line and polygon feature representations. You can adjust the shape of line and polygon feature representations by moving, adding, or deleting vertices.


1 Answers

There are no differences between the words Node and Vertex. Even in some books that explain graph theory and graph algorithms they name it as:

Vertex denoted by v, and sometimes it's called nodes also

There are no major nor minor differences between them.

This is mentioned in the book: Data structure and Algorithms with Object Oriented Design Patterns in C#, Bruno R, Preiss.

like image 113
mamdouh alramadan Avatar answered Sep 20 '22 20:09

mamdouh alramadan