def select_group_nodes(graph, group):
	"""Select nodes from a networkx graph based on a group.

	Args:
		graph (networkx.Graph): Networkx graph object.
		group (str): Group name.
	
	Returns:
		list: List of networkx nodes that are of the specified group.
	"""
	nodes = [node for node in graph.nodes(data=True) if group < 0 or node[1]["group"] == group]
	return nodes