import importlib


def get_networkx_func (func_name, seed=0, **kwargs):
  """
  Uses 'func_name' graph generator of NetworkX library to create a NetworkX 
  graph which can be used as topology.
  """
  nx_func = getattr(importlib.import_module("networkx"), func_name)
  generated_graph = nx_func(seed=seed, **kwargs)
  return generated_graph