Skip to content

Instantly share code, notes, and snippets.

View wizardbyron's full-sized avatar
✍️
Keep Coding

Gu Yu wizardbyron

✍️
Keep Coding
View GitHub Profile
@XuefengWu
XuefengWu / UndirectedGraph
Created November 17, 2013 10:41
UndirectedGraph for demo
package rel
import scala.collection.mutable.ListBuffer
case class Graph(adj: Array[ListBuffer[Int]])
object GraphBuild {
def apply(size: Int, data: (Int,Int) *) = {
val vertexs = new Array[ListBuffer[Int]](size)