from __future__ import absolute_import

from .space import *
from .degree import *
from .eccentricity import *
from .gEfficiency import *
from .embedding import *

__representation_factory = {
  'space': Space,
  'degree': Degree,
  'eccentricity': Eccentricity,
  'gEfficiency': Gefficiency,
  'embedding':Embedding
}

def get_names():
  return list(__representation_factory.keys())

def init_representation(name, match, *args, **kwargs):
  if not name in list(__representation_factory.keys()):
  	raise KeyError("Unknown representation: {}".format(name))
  return __representation_factory[name](match, *args, **kwargs)
from __future__ import absolute_import

from .space import *
from .degree import *
from .eccentricity import *
from .gEfficiency import *
from .embedding import *

__representation_factory = {
  'space': Space,
  'degree': Degree,
  'eccentricity': Eccentricity,
  'gEfficiency': Gefficiency,
  'embedding':Embedding
}

def get_names():
  return list(__representation_factory.keys())

def init_representation(name, match, *args, **kwargs):
  if not name in list(__representation_factory.keys()):
  	raise KeyError("Unknown representation: {}".format(name))
  return __representation_factory[name](match, *args, **kwargs)