 | AdjacencyListWeightedDirectedGraphTAddEdges Method |
Adds two edges between two vertices in this graph in O(1),
weighted with the given value.
Namespace: Slash.Collections.GraphsAssembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntaxpublic void AddEdges(
T firstNode,
T secondNode,
int edgeWeight
)
Public Sub AddEdges (
firstNode As T,
secondNode As T,
edgeWeight As Integer
)
public:
void AddEdges(
T firstNode,
T secondNode,
int edgeWeight
)
member AddEdges :
firstNode : 'T *
secondNode : 'T *
edgeWeight : int -> unit
Parameters
- firstNode
- Type: T
First vertex to add edges to. - secondNode
- Type: T
Second vertex to add edges to. - edgeWeight
- Type: SystemInt32
Weight of the new edges.
See Also