def adjmatrix(adj):
	"""
	From an adjacency list, return the adjacency matrix with entries in {0,1}.
	The order of nodes in adj is assumed to be same as they were read in.
	"""
	n = len(adj)
	A = [[0] * n for i in range(n)]

	# fill in

	return A