pub fn remove_connection(
        &mut self,
        _owner: &Reference,
        source: i32,
        target: i32,
        #[opt] bidirectional: Option<bool>,
    ) -> i64 {
        result_to_int(Ok(()))
    }
/// Remove a connection between the two given points.
///
/// # Parameters
///
/// - `source` : source point of the connection.
/// - `target` : target point of the connection.
/// - `bidirectional` (default : [true]) : if [true], also removes
/// connection from target to source.
///
/// # Errors
///
/// Returns [FAILED] if one of the points does not exist.
///
/// # Example
/// ```gdscript
/// var dijkstra_map = DijkstraMap.new()
/// dijkstra_map.add_point(0)
/// dijkstra_map.add_point(1)
/// dijkstra_map.connect_points(0, 1)
/// dijkstra_map.remove_connection(0, 1)
/// assert(dijkstra_map.remove_connection(0, 2) == 1) # 2 does not exists in the map
/// dijkstra_map.connect_points(0, 1)
/// # only removes connection from 0 to 1
/// dijkstra_map.remove_connection(0, 1, false)
/// assert(dijkstra_map.has_connection(1, 0))
/// ```
Remove a connection between the two given points.
Remove a connection between the two given points .
pub fn remove_connection(
        &mut self,
        _owner: &Reference,
        source: i32,
        target: i32,
        #[opt] bidirectional: Option<bool>,
    ) -> i64 {
        result_to_int(Ok(()))
    }
pub fn remove_connection ( & mut self , _owner : & Reference , source : i32 , target : i32 , # [ opt ] bidirectional : Option < bool > , ) -> i64 { result_to_int ( Ok ( ( ) ) ) }
Remove a connection between the two given points.
Remove a connection between the two given points .
&mut self
_owner
&Reference
source
i32
target
i32
bidirectional
Option<bool>
&mut self
_owner
&Reference
source
i32
: source point of the connection.
: source point of the connection .
target
i32
: target point of the connection.
: target point of the connection .
bidirectional
Option<bool>
(default : [true]) : if [true], also removes
connection from target to source.
( default : [ true ] ) : if [ true ] also removes connection from target to source .
errors
Returns [FAILED] if one of the points does not exist.
Returns [ FAILED ] if one of the points does not exist .
example
```gdscript
var dijkstra_map = DijkstraMap.new()
dijkstra_map.add_point(0)
dijkstra_map.add_point(1)
dijkstra_map.connect_points(0, 1)
dijkstra_map.remove_connection(0, 1)
assert(dijkstra_map.remove_connection(0, 2) == 1) # 2 does not exists in the map
dijkstra_map.connect_points(0, 1)
` ` ` gdscript var dijkstra_map = DijkstraMap . new () dijkstra_map . add_point ( 0 ) dijkstra_map . add_point ( 1 ) dijkstra_map . connect_points ( 0 1 ) dijkstra_map . remove_connection ( 0 1 ) assert ( dijkstra_map . remove_connection ( 0 2 ) == 1 ) # 2 does not exists in the map dijkstra_map . connect_points ( 0 1 )
only removes connection from 0 to 1
dijkstra_map.remove_connection(0, 1, false)
assert(dijkstra_map.has_connection(1, 0))
```
dijkstra_map . remove_connection ( 0 1 false ) assert ( dijkstra_map . has_connection ( 1 0 )) ` ` `