| Declared in | GITGraphNode.h | 
|---|
A Graph Node is used with a Graph to store objects to be sorted.
If the object responds to committerDate then the return value of this method will be stored in the nodes time field which is required for date based sorting.
Node key.
@property id keyGITGraphNode.hNode object.
@property id objectGITGraphNode.hFlag indicating if the node has been visited.
@property BOOL visitedGITGraphNode.h+ (GITGraphNode *)nodeWithObject:(id)object key:(id)key Object to create the node with
Key to identify the node
new node with the object and key
Creates and returns a node with the object and key.
GITGraphNode.h- (id)initWithObject:(id)object key:(id)key Object to create the node with
Key to identify the node
initialised node with the object and key
Initialises and returns a node with the object and key.
GITGraphNode.h- (void)resetFlagsReset the flags on the receiver to defaults
GITGraphNode.h- (BOOL)hasBeenVisitedvisited state of the receiver
Returns the visited state of the receiver.
GITGraphNode.h- (void)markVisitedMarks the receiver as visited.
GITGraphNode.h- (BOOL)hasBeenProcessedprocessed state of the receiver
Returns the processed state of the receiver.
GITGraphNode.h- (void)markProcessedMarks the receiver as processed.
GITGraphNode.h- (void)addInboundEdgeToNode:(GITGraphNode *)node Node to create the edge to
Add inbound edge from the receiver to the node.
GITGraphNode.h- (void)addOutboundEdgeToNode:(GITGraphNode *)node Node to create the edge to
Add outbound edge from the receiver to the node.
GITGraphNode.h- (void)removeInboundEdgeToNode:(GITGraphNode *)node Node to remove the edge to
Remove inbound edge from the receiver to the node.
GITGraphNode.h- (void)removeOutboundEdgeToNode:(GITGraphNode *)node Node to remove the edge to
Remove outbound edge from the receiver to the node.
GITGraphNode.h- (void)resetInboundEdgeCountReset the inbound edge count to the number of nodes in the inbound list.
GITGraphNode.h- (void)resetOutboundEdgeCountReset the outbound edge count to the number of nodes in the outbound list.
GITGraphNode.h- (NSUInteger)inboundEdgeCountnumber of inbound edges
Return the count of inbound edges.
GITGraphNode.h- (NSUInteger)outboundEdgeCountnumber of outbound edges
Return the count of outbound edges.
GITGraphNode.h- (NSUInteger)decrementedInboundEdgeCountdecremented inbound edge count
Decrements and returns the inbound edge count.
GITGraphNode.h- (NSUInteger)decrementedOutboundEdgeCountdecremented outbound edge count
Decrements and returns the outbound edge count.
GITGraphNode.h- (NSArray *)inboundNodesarray of inbound nodes the receiver has edges to
Returns the array of inbound nodes the receiver has edges to.
GITGraphNode.h- (NSArray *)outboundNodesarray of outbound nodes the receiver has edges to
Returns the array of outbound nodes the receiver has edges to.
GITGraphNode.h- (BOOL)isEqual:(id)other Object to compare the receiver to
YES if the reciever is equal to the other object, NO if not
Tests if the receiver is equal to the other object.
GITGraphNode.h- (NSComparisonResult)compare:(GITGraphNode *)rhs Other graph node to compare the receiver to
NSComparisonResult if the comparison
Compares the receiver to the rhs node object.
GITGraphNode.hLast updated: 2011-2-20