def all_edges_in_visited(IDG,p, visited):
	"""
	@Params: 
	IDG: IDG of the paper 
	p: paper whose neighbours we need to check
	visited: set of nodes which are visited
	@Returns:
	True if all the neighbours are visited else False
	"""
	edge_list = list(IDG.out_edges(nbunch = [p]))
	for e in edge_list:
		if e[1] not in visited:
			return False
	return True