Directly Adds an arc to the graph.
Namespace:
Pathfinding
Assembly:
RebornBuddy (in RebornBuddy.exe) Version: 3.3.1; net-4.5.win32; release
Syntax public bool AddArc(
Arc NewArc
)
Parameters
- NewArc
- Type: PathfindingArc
The arc to add.
Return Value
Type:
Boolean'true' if it has actually been added / 'false' if the arc is null or if it is already in the graph.
Exceptions Exception | Condition |
---|
ArgumentException | Cannot add an arc if one of its extremity nodes does not belong to the graph. |
See Also