IntGraph

constructor(size: Int, debugTimeUse: Boolean = false, isSparse: Boolean = false)

Parameters

size

The number of nodes in the graph. Nodes are represented as integers from 0 to size-1.

debugTimeUse

optional flag that prints the time use of run algorithms to standard error

isSparse

If true, search results are stored in maps instead of arrays. More performant when searches only reach a small part of a large graph. Defaults to false.