Skip to main content

Simple Graph

package algorithmdesignmanualbook.graph


class SimpleGraph(val vertexCount: Int, val edgesCount: Int) {

class Edge(var src: Int, var dest: Int, var weight: Int)

val edges = Array<Edge?>(edgesCount) { null }
}

Updated on 2021-04-03