Click or drag to resize

Graph Class

Graph structure. It is defined with : It is defined with both a list of nodes and a list of arcs.
Inheritance Hierarchy
SystemObject
  PathfindingGraph

Namespace:  Pathfinding
Assembly:  RebornBuddy (in RebornBuddy.exe) Version: 3.3.1; net-4.5.win32; release
Syntax
C#
[SerializableAttribute]
public class Graph

The Graph type exposes the following members.

Constructors
  NameDescription
Public methodGraph
Constructor.
Top
Properties
  NameDescription
Public propertyArcs
Gets the List interface of the arcs in the graph.
Public propertyfreeId
Public propertyItem
Public propertyNodes
Gets the List interface of the nodes in the graph.
Top
Methods
  NameDescription
Public methodAdd2Arcs
Adds the two opposite arcs between both specified nodes to the graph.
Public methodAddArc(Arc)
Directly Adds an arc to the graph.
Public methodAddArc(Node, Node, Single)
Creates an arc between two nodes that are already registered in the graph, adds it to the graph and returns its reference.
Public methodAddNode(Node)
Directly Adds a node to the graph.
Public methodAddNode(Single, Single, Single)
Creates a node, adds to the graph and returns its reference.
Public methodAddNode(Vector3, Int32, Int32)
Creates a node, adds to the graph and returns its reference.
Public methodAddNode(Single, Single, Single, Int32, Int32)
Creates a node, adds to the graph and returns its reference.
Public methodClear
Empties the graph.
Public methodCloestNode
Public methodClosestArc2D
Public methodClosestNode(Vector3, Single, Boolean)
Public methodClosestNode(Single, Single, Single, Single, Boolean)
This function will find the closest node from a geographical position in space.
Public methodClosestNode2D
Public methodClosestNodes
returns the three closest nodes to a point
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFarthestNode
This function will find the farthest node from a geographical position in space.
Public methodFarthestNodes
returns the three closest nodes to a point
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFindClosest
Public methodFreeIds
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNodeById
Public methodRemoveAllArcs
Public methodRemoveArc
Removes a node from the graph as well as the linked arcs.
Public methodRemoveNode
Removes a node from the graph as well as the linked arcs.
Public methodSearch(Node, Single)
Public methodSearch(Vector3, Single)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also