IntGraph

constructor(size: Int, isWeighted: Boolean = true)

Parameters

size

The number of nodes in the graph. Nodes are represented as integers from 0 to size-1. This cannot be altered later

isWeighted

Indicates whether the graph uses weighted or unweighted edges.