| Declared in | GITGraph.h | 
|---|
The Graph class manages a graph of nodes and edges for searching and sorting of those nodes.
+ (GITGraph *)graphNew graph object
Creates and returns a new empty graph object.
GITGraph.h+ (GITGraph *)graphWithStartingCommit:(GITCommit *)commit GITCommit object to populate the graph from 
New graph object populated with the history of the given commit.
Creates and returns a new graph object populated with nodes from the given commit.
The commit history from the commit given is iterated and for each commit found a new node is added to the graph.
GITGraph.h- (id)initinitialised graph object
Initialises and returns an empty graph object.
GITGraph.h- (id)initWithStartingCommit:(GITCommit *)commit GITCommit object to populate the graph from 
initialised graph object populated with the history of the given commit.
Initialises and returns a graph object populated with nodes from the given commit.
The commit history from the commit given is iterated and for each commit found a new node is added to the graph.
GITGraph.h- (BOOL)hasNode:(GITGraphNode *)node Node to check for
Boolean YES if the node is in the graph, NO if not.
Checks if the node is present in the receiver.
GITGraph.h- (void)addNode:(GITGraphNode *)node GITGraphNode to add to the receiver. 
Adds a node to the receiver.
GITGraph.h- (void)removeNode:(GITGraphNode *)node GITGraphNode to remove from the receiver. 
Removes a node from the receiver.
GITGraph.h- (void)addEdgeFromNode:(GITGraphNode *)fromNode to:(GITGraphNode *)toNode Graph node to create the edge from
Graph node to create the edge to
Add an edge between nodes fromNode and toNode in the receiver.
GITGraph.h- (void)removeEdgeFromNode:(GITGraphNode *)fromNode to:(GITGraphNode *)toNode Graph node to remove the edge from
Graph node to remove the edge to
Removes an edge between nodes fromNode and toNode in the receiver.
GITGraph.h- (GITGraphNode *)nodeWithKey:(id)key Key to identify the node in the receiver.
Graph node object identified by the given key, or nil if not found.
Returns the node identified by the given key in the receiver.
GITGraph.h- (NSUInteger)nodeCountnumber of nodes in the receiver
Returns the number of nodes in the receiver
GITGraph.h- (NSUInteger)edgeCountnumber of edges in the receiver
Returns the number of edges in the receiver.
GITGraph.h- (void)buildWithStartingCommit:(GITCommit *)commit Commit object to populate the receiver from
Populates the receiver with nodes from the history of the given commit
GITGraph.h- (void)subtractDescendentNodesFromCommit:(GITCommit *)commit Commit object HEAD to remove from the receiver
Removes nodes from the receiver which are in the history of the given commit
GITGraph.h- (NSArray *)arrayOfNodesSortedByDatearray of nodes of the receiver sorted by date
Returns an array of nodes of the receiver sorted by date.
GITGraph.h- (NSArray *)arrayOfNodesSortedByTopologyarray of nodes of the receiver sorted by toplogy
Returns an array of nodes of the receiver sorted by toplogy
GITGraph.h- (NSArray *)arrayOfNodesSortedByTopologyAndDatearray of nodes of the receiver sorted by toplogy and date
Returns an array of nodes of the receiver sorted by toplogy and date
GITGraph.hLast updated: 2011-2-20