- What is a graph?
-
A graph is an abstract data type
Typically used to model data that contains objects and some sort of relationship between those objects. -
Objects: referred to as nodes or vertices
-
Relationship between those objects are: lines or edges
What is an edge?
- Represents the line or relationship between objects aka nodes or vertices.
- What is a vertex?
- A vertex (plural vertices) or node is the fundamental unit of which graphs are formed.
- EXAMPLE: A vertex is usually represented by a circle with a label, and an edge is represented by a line or arrow extending from one vertex to another.
- Why would we want to use a graph database instead of a normal SQL database?
- When there is large amount of relationships within the data.
- The ability to directly state the relationship between two objects within a graph database.