Graph Class

This class implements generic graph objects. A graph consists of a collection of nodes bidirectionally linked by directional edges. An edge connected to a node is represented as a pointer or reference to the node at the other end of the edge. References are classified as either incoming or outgoing. Every incoming reference has a corresponding outgoing reference and vice versa.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    Teigha.RuntimeDisposableWrapper
      Teigha.DatabaseServicesGraph
        Teigha.DatabaseServicesObjectIdGraph
        Teigha.DatabaseServicesXrefGraph

Namespace: Teigha.DatabaseServices
Assembly: TD_Mgd (in TD_Mgd.dll) Version: 26.9.0.0
Syntax
public class Graph : DisposableWrapper

The Graph type exposes the following members.

Constructors
  Name Description
Public method Graph(GraphNode) Constructor for the Graph class.
Protected method Graph(IntPtr, Boolean) Initializes a new instance of the Graph class
Top
Properties
  Name Description
Public property AutoDelete Property that indicates whether the object should be automatically deleted by the Garbage Collector.
(Inherited from DisposableWrapper)
Public property IsDisposed Property that indicates whether pointer to native code unmanaged object == IntPtr::Zero.
(Inherited from DisposableWrapper)
Public property IsEmpty Property that indicates whether the graph is empty.
Public property NumNodes Property that represents the number of nodes in the graph.
Public property RootNode Property that represents the root node of the graph.
Public property UnmanagedObject Property that represents a pointer to an unmanaged object.
(Inherited from DisposableWrapper)
Top
Methods
  Name Description
Public method AddEdge Adds the specified edge to this Graph object.
Public method AddNode Adds the specified node to this Graph object.
Public method BreakCycleEdge Removes the specified edge, and updates the cyclical information for this Graph object.
Public method ClearAll Clears the specified set flag bits in the GraphNode objects of this Graph object.
Public methodStatic member Create Creates a graph based on the passed pointer and returns a handle to the created object.
Public method CreateObjRef
(Inherited from MarshalByRefObject)
Protected method DeleteUnmanagedObject
(Overrides DisposableWrapperDeleteUnmanagedObject)
Public method DelNode Removes the specified node from this GraphNode object, and all references to it.
Public method Dispose
(Inherited from DisposableWrapper)
Protected method Dispose(Boolean)
(Inherited from DisposableWrapper)
Public method Equals Checks objects for equality.
(Inherited from DisposableWrapper)
Protected method Finalize
(Inherited from DisposableWrapper)
Public method FindCycles Finds the cyclical nodes for this Graph object.
Public method GetHashCode Retrieves the object hash code.
(Inherited from DisposableWrapper)
Public method GetLifetimeService
(Inherited from MarshalByRefObject)
Public method GetOutgoing Gets all outgoing nested nodes as a collection. Each node in the list appears in the collection only once.
Public method GetType
(Inherited from Object)
Public method InitializeLifetimeService
(Inherited from MarshalByRefObject)
Protected method MemberwiseClone
(Inherited from Object)
Protected method MemberwiseClone(Boolean)
(Inherited from MarshalByRefObject)
Public method Node Returns the specified GraphNode object of this Graph object.
Public method Reset Removes all nodes and cycle nodes from this Graph object.
Public method SetNodeGrowthRate Sets the number of nodes that are allocated to the graph at a time. If the graph consists of many nodes, this method should be called to increase the rate. Setting a rate to a higher value increases performance but may cause increased memory usage due to unused but allocated node space.
Public method ToString
(Inherited from Object)
Top
See Also

©  Bricsys NV. All rights reserved.