Object graph
Appearance
![]() | This article's tone or style may not reflect the encyclopedic tone used on Wikipedia. (December 2007) |
An Object Graph is a view of an object system at a particular point in time. Whereas a normal data model details the relationships between objects, the object graph relates the instances.
e.g. Instead of a car having a relationship to a wheel, MyCar has four relationships to four different Wheels (FrontLeft, FrontRight, BackLeft, BackRight).
Examples
Object graph is a term often used with object-oriented applications. Object-oriented applications contain complex webs of interrelated objects. Objects are linked to each other by one object either owning or containing another object or holding a reference to another object. This web of objects is called an object graph.
Eg A -> B, C B -> D C -> A, D D -> B, A