Creates a random graph with the specified parameters.
Namespace: TspAssembly: Tsp (in Tsp.exe) Versión: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static Graph Random( int nbNodes, int max_weight ) |
Visual Basic |
---|
Public Shared Function Random ( _ nbNodes As Integer, _ max_weight As Integer _ ) As Graph |
Visual C++ |
---|
public: static Graph^ Random( int nbNodes, int max_weight ) |
Parameters
- nbNodes
- Type: System..::..Int32
The number of nodes that the graph will contain.
- max_weight
- Type: System..::..Int32
The maximun weight for links.