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 key
GITGraphNode
.h
Node object.
@property id object
GITGraphNode
.h
Flag indicating if the node has been visited.
@property BOOL visited
GITGraphNode
.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)resetFlags
Reset the flags on the receiver to defaults
GITGraphNode
.h
- (BOOL)hasBeenVisited
visited state of the receiver
Returns the visited state of the receiver.
GITGraphNode
.h
- (void)markVisited
Marks the receiver as visited.
GITGraphNode
.h
- (BOOL)hasBeenProcessed
processed state of the receiver
Returns the processed state of the receiver.
GITGraphNode
.h
- (void)markProcessed
Marks 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)resetInboundEdgeCount
Reset the inbound edge count to the number of nodes in the inbound list.
GITGraphNode
.h
- (void)resetOutboundEdgeCount
Reset the outbound edge count to the number of nodes in the outbound list.
GITGraphNode
.h
- (NSUInteger)inboundEdgeCount
number of inbound edges
Return the count of inbound edges.
GITGraphNode
.h
- (NSUInteger)outboundEdgeCount
number of outbound edges
Return the count of outbound edges.
GITGraphNode
.h
- (NSUInteger)decrementedInboundEdgeCount
decremented inbound edge count
Decrements and returns the inbound edge count.
GITGraphNode
.h
- (NSUInteger)decrementedOutboundEdgeCount
decremented outbound edge count
Decrements and returns the outbound edge count.
GITGraphNode
.h
- (NSArray *)inboundNodes
array of inbound nodes the receiver has edges to
Returns the array of inbound nodes the receiver has edges to.
GITGraphNode
.h
- (NSArray *)outboundNodes
array 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
.h
Last updated: 2011-2-20