- Consists of Nodes/Vertices and Edges
- Node / Vertex is an object containing a
value
and references to other Nodes. - Edge is a connection between nodes.
- Node / Vertex is an object containing a
- Used to represent networks of interconnected objects.
Graphs consist of 2 key properties:
- A finite set of vertices ( of type Node ).
- A finite set of ordered pairs that denote connection between vertices ( Edges ).