Object graph

From Wikipedia, the free encyclopedia

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.

i.e. Instead of a car having a relationship to a wheel, MyCar has four relationships to four different Wheels (FrontLeft, FrontRight, BackLeft, BackRight).

[edit] 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

[edit] See also