IODNode Class

class IODNode: public IODObject

This interface provides navigation of edges to and from a graph node. It contains methods for retrieving all edges, edges leading to the node, and edges leading away from the node. The  IODEdgeCollection interface is used to add the edges retrieved to a collection object.

This interface is associated with the GUID identifier IID_IODNode.

Defined in: OdGraph.h

Class Members

virtual ODComponentId GetID() const

Return the component ID of the node.

virtual IODEdge* GetEdge(const ODComponentId edgeId)

Return a pointer to the given edge.

virtual int GetNumEdges() const

Return a count of all edges touching the node.

virtual int GetNumEdgesLeaving() const

Return a count of edges leaving the node.

virtual int GetNumEdgesEntering() const

Return a count of edges entering the node.

virtual int GetEdges(IODEdgeCollection* pIEdges)

Retrieve all edges touching the node.

virtual int GetEdgesLeaving(IODEdgeCollection* pIEdges)

Retrieve all edges leaving the node.

virtual int GetEdgesEntering(IODEdgeCollection* pIEdges)

Retrieve all edges entering the node.

virtual IODNode* GetNodeAdjacent(IODEdge* pIEdge)

Retrieve the node adjacent to this node on a given edge.

virtual int GetNodesAdjacent(IODNodeCollection* pINodes)

Retrieve all adjacent nodes.

virtual int GetNodesAdjacentFrom(IODNodeCollection* pINodes)

Retrieve nodes adjacent from this node.

virtual int GetNodesAdjacentTo(IODNodeCollection* pINodes)

Retrieve nodes adjacent to this node.

virtual int GetNodesConnected(IODNodeCollection* pINodes)

Retrieve all connected nodes.

virtual int GetNodesConnectedFrom(IODNodeCollection* pINodes)

Retrieve nodes that are connected from this node.

virtual int GetNodesConnectedTo(IODNodeCollection* pINodes)

Retrieve nodes that are connected to this node.