def parseLinksList(links, weighted, resdub):
	"""Parse node links in Pajek format
	links  - links string: <did1> <did2> ...
	weighted  - generate weighted / unweighted links
	resdub  - resolve dublicates
	return [(dest_id, weight), ...]
	"""
	links = links.split()
	if weighted:
		if resdub:
			links = {v: '1' for v in links}
		else:
			links = [(v, '1') for v in links]
	elif resdub:
		links = list(set(links))

	return links