Table of Contents

Method RemoveEdge

Namespace
Bonsai.Dag
Assembly
Bonsai.Core.dll

RemoveEdge(Node<TNodeValue, TEdgeLabel>, Edge<TNodeValue, TEdgeLabel>)

Removes the specified edge from the directed graph.

public bool RemoveEdge(Node<TNodeValue, TEdgeLabel> from, Edge<TNodeValue, TEdgeLabel> edge)

Parameters

from Node<TNodeValue, TEdgeLabel>

The node that is the source of the edge.

edge Edge<TNodeValue, TEdgeLabel>

The outgoing edge to remove from the directed graph.

Returns

bool

true if edge is successfully removed; otherwise, false. This method also returns false if edge was not found in the directed graph.