Graph Class |
Namespace: Pathfinding
[SerializableAttribute] public class Graph
The Graph type exposes the following members.
Name | Description | |
---|---|---|
Arcs |
Gets the List interface of the arcs in the graph.
| |
freeId | ||
Item | ||
Nodes |
Gets the List interface of the nodes in the graph.
|
Name | Description | |
---|---|---|
Add2Arcs |
Adds the two opposite arcs between both specified nodes to the graph.
| |
AddArc(Arc) |
Directly Adds an arc to the graph.
| |
AddArc(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.
| |
AddNode(Node) |
Directly Adds a node to the graph.
| |
AddNode(Single, Single, Single) |
Creates a node, adds to the graph and returns its reference.
| |
AddNode(Vector3, Int32, Int32) |
Creates a node, adds to the graph and returns its reference.
| |
AddNode(Single, Single, Single, Int32, Int32) |
Creates a node, adds to the graph and returns its reference.
| |
Clear |
Empties the graph.
| |
CloestNode | ||
ClosestArc2D | ||
ClosestNode(Vector3, Single, Boolean) | ||
ClosestNode(Single, Single, Single, Single, Boolean) |
This function will find the closest node from a geographical position in space.
| |
ClosestNode2D | ||
ClosestNodes |
returns the three closest nodes to a point
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
FarthestNode |
This function will find the farthest node from a geographical position in space.
| |
FarthestNodes |
returns the three closest nodes to a point
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
FindClosest | ||
FreeIds | ||
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NodeById | ||
RemoveAllArcs | ||
RemoveArc |
Removes a node from the graph as well as the linked arcs.
| |
RemoveNode |
Removes a node from the graph as well as the linked arcs.
| |
Search(Node, Single) | ||
Search(Vector3, Single) | ||
ToString | Returns a string that represents the current object. (Inherited from Object.) |