Jump to content

Object graph

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 203.20.192.55 (talk) at 07:11, 3 June 2008 (Examples). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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).

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

See also