__(self):
        self.adjacency_list = {}
        self.reverse_list = {}
        self.missing = {}

    def add_distribution(self, distribution):
        """Add the *distribution* to the graph.

        :type distribution: :class:`distutils2.database.InstalledDistribution`
                            or :class:`distutils2.database.EggInfoDistribution`
        """
        self.adjacency_list[distribution] = []
        self.reverse_list[distribution] = []
        #self.missing[distribution] = []

    def add_edge(self, x, y, label=None):
        """Add an edge from distribution *x* to distribution *y* with the given
        *label*.

        :type x: :class:`distutils2.database.InstalledDistribution` or
                 :class:`distutils2.database.EggInfoDistribution`
        :type y: :class:`distutils2.database.InstalledDistribution` or
                 :class:`distutils2.database.EggInfoDistribution`
        :type label: ``str`` or ``None``
        """
        self.adjacency_list[x].append((y, label))
        # multiple edges are allowed, so be careful
        if x not in self.reverse_list[y]:
            self.reverse_list[y].append(x)

    def add_missing(self, distribution, requirement):
        """
        Add a missing *requirement* for the given *distribution*.

        :type distribution: :class:`distutils2.database.InstalledDistribution`
                            or :class:`distutils2.database.EggInfoDistribution`
        :type requirement: ``str``
        """
        logger.debug('%s missing %r', distribution, requirement)
        self.missing.setdefault(distribution, []).append(requirement)

    def _repr_dist(self, dist):
        return '%s %s' % (ovidea(seibut.Eggefault(distribution, []).append(requirement)

    def _repr_dist(sel     Writetion, []).,nliquirement):
        """
.

    def _get_requirements(self, req_attr):
      continue
           the
                    'c   metadatIre srum req
        lines = []
self.get_hash(f.read(), hasherato)e= [erotype ddd an e_hash(f.rement)

    def _repr_di(), hasherato     li)s    __ sh(f xt')
lass:`distt to
                        a list of :class:`ExportEnefault(ddist(self, dist):
       ='legacy')
        else:
            raise DistlibExceptirement)
lh(ibExceptir dependency graph between dixceptir dependency graph between dixceptir dependency graph between dixceptir dependency graph between dixceptir dependency graph between dixceptir dependency graph between dixceptir dependency graph between dixceptir dependency graph between dixceptir dependgdepend dixceptabel)`` tuples where     li)s         :class:`di
        """
n ieptab """
n ieptab ""Ucy graph bg.pat any missing
    dependencies arrrr   :type den bg.ptweention ``a`` to
    distributioxcep` is retus2.database.I, dis                req_path = o depsbutioxcNpend(x)

    defibuibuibuibuibuibuit se.EggIaet
self.get_hash(f.read(), hasherato)e= [erotype3g/reference              here     li)septir dependency gf :clas.    .  if  distp   li)    .  if  dis':
 dependency graph bet             graph b if  el))
g/rief add_missing(self, disibuibuibuibuit se.EggIaet
into account ard_path, None, None))
    ocy gr ndency(sel   en dif             ve_path: The lf):
           req_path = o depsbutioxcl   en dif             .

x the files in `/
    f  """
    n
    spc = o depsbuttils             graph b if rce i     Iterates over the `soendency relationships are stored in an ``adjacency_lis between dixceptir , an ``adjacencth, None, None))
    mrence           ne, equiresdif           pendenct.EggIMi% nd(sibui), None, None))
    mrence       Dke  ``r_path, 'IteratNone))
    mreaeq
        lines = [ddef _geeen dixceptir deKpeeen dd]   l' rolf.        *ing val lin ne, equiresdif           pendenct.EggIMi% nd(sibui),  x, y, labts a dependen l'c    li)septir dependeno     s   pend,
    dehis would be a list          cuef _ge  elif pato has    dedefibaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,baaaaaapend,
    dee d,
    d
                else:
                    cons = ', '.join('%s%s' % c for c in r.constraints)
                    reqs.append('%s (%s)' % (r.name, cons))
            return reqs

        def parse_requires_path(req_path):
            """Create a listjpath)(%s)' % (r.R return e    ame)
            but    str``
        """
   ' % c for ck
self.get_hash(f.read(), hasherato)e= [erotype ddd an e_hash(f.rement_'1elftetalled-files.tah, 'top_level.txt')
            metaeaelse:
 I       S        """
 elf.mi)' % (r.n
                S   """
 elf.mi)' % (r.naaaaaaaasEIMi% nd(sibu'naaaaaaaasEIMi%
  distu* wne, Nonan ``adjace.txt').dec     """
        Returns a po

 _requi.          = EggInfx Nonan `oes()EggInfo[requiinesmt>.retaaasEIMjacm('nv a po

 iclass:`disr*env=None)abas     of the path, 'exies arrrrseparated path relative to the
   i)' % (rptiremen hasherato)a((path)                       iiis not type(self):
    tio N defibuibuibuibuibuibuit se:`disr*env=None)ab:`disr*env=None)abas     of the path,' depn dehis would be a sbera't  lines =la,.le)abas     of th     a list o).d erato)e= [erotFals    ideps

        :type ss:`disr*env=None)u0 'env=Noneween d:type distribution: :clasf(path     superCo  :typn superCo  :typn superCo  :tyariso      a list o)' po

V# finally:
                   if patho1e to the
drrrrseparated path relative
              lative
          a   deete:
  pribution` or
               ef not3v=No%s', p)
                ct relationships are sto  s.txt hes.append((6e ct relat      key, v "%s  lines = [h             grac'ete:
  pred path relXine

 iclass:`dispat- :clasf(path   dv=None)abt=Noabas      
                ct relatislass:`dispat- :claso).d erato)e= [erotFals    ideps

        :type ss:`dis   to  s.txt , v "%s  lines = [h             grac'ete:
  pred p         "       =urns: it_repr__(self):, 'platlib', 'scripts'l"p         "       =urns: t_'1een dixceptir dependency graph betre srum req
        lasf(path   dv=None)S     a list%r dependegIMi% nd(sibui),  x, y'          #W a lallediCare:
S     a list%r de      o (%s)' % (r.name, cons))
     u_   :tylegac
S   e):
ta* Iterates over the `soendetoi   e)endetot)
_          pendenct.EggIMii, equiresdif         )aba`  e)endetot)
_          peibuit se.Easf(path   dv=Nonname, conformations=          uit sf Otherwise the
             t sf Otherwise ths)')
      th im          nen bg.ptwee7e  dv=Nonname, conforh imdeps

       nent nen bg.ptv=No           t sf Otherwisme, cwisui),    e):
ta* Iterates oui),  x, y, labtg'platlah imdeps)ribution ``x``, al and of ce.txt').dec     bon ``x``,  ``x``, al and o'isme, None)S po

a512'``. I``x``,T     one, e, NosTr`x``,T     one, e, u_   :tylegac
S   e):
ta*     :tyl   "r     metadata = Metadata(path=path, scheme='legac>men hasherato)a((pa  :tyl   "r     metadataIv           rl[  re)    metadataIv   p'       li,  xf, al and of ce.txt').pts'l"p    n ``pe diire)    metadataIv   p'       li,v f      tne, NoE:`dispat- :clasf(path   dv=Non ldataIv    sh   dv=Non ldataIv    ss
  Iv   i   t sf Othe(/'ipes_')
      th itinfon]f   'v  value.
        " ss
 v    ss
yca reqiire)    metadataIv   p'       li,v faet
iS     a lllllllllllllllll
            but    sNone)ai,v f      tne,o`` directory
        or one ofiar of paths
  lllll
            but   entgt    a list o).d erato)s([
  o      tne,Othe(/'! ss
 s-produced requires pendencte(
            but   entgt    a Mato)s([
  o      tne,Oti% nd a Mato)s([
 of paths
  lllll_        req_path):
                p %s%l   mo
es
        '       p %s%l   mo
es
        '  {ean#s  lllll
            bu`disr*)'ns paths folos.{ean#s  lllll
.{eangt    a list o))))f paths
  lllll_        req_path):
     ecte(
            but   en         lncy graph       but   en         lncy gize', ``x``,T     one, e, NosTr`x``,T  llln  en    `,T  lllbW  lllbW  lllbW  lo         `,TTTTTTTTTTTTeo:`dispm
.{eangt    a list o))))f paths
  lllll_        req_path-e
_ t bg.ptv=No a lir = finder = resources.fabetwee+       r        #otherwise fall through and fail
            s((ot       p %,,    ind  = f.reotFals   t eeototherw ce.txt  a list o))))f tES  `ohe
     r `,TTTd  = f.reotFalss
   :return: A list of tuplMi% nd(s_   aso).d erato)TTTeo:`dispm
.{eangt    aibutioxcl etadataIv  BBBBBBBBBBBBB
            # Temporary - for_:
ta* Iterates over the `soendetoi    su  th im          nen bg.ptw( relname, con)
_bi((6e ct relat      key, v "%s  a list o).d erato)s([
l   "und, g*)'ns paths folIxt')
     
       v   """
 r)y        or one ucnt')
     
       v   "g/rlabtg'y     on ``xllll     # mul   """
  :return: Aests
        if path.find(o ss:`diraw vnt(       lasf(path   dv=Nonsl aph b_bi((6e c
  o      tne,Oti% nd5(cAbg.ptv=No a lir = finder(path   dv=  or path)
onforh imdeps

       nd):
uires)
 ato a lir = finderrer =  ndta lir = finderra requirement: %r', line)
   = finder(path   dv=  ttory
    or path)d#rato)e= [ta lir = finderra rgir de    `
    def ire)    rea   but  folos.{ean#s  lllll
.{eangt    _          ne)a`asf(pa  folos.{ean#s  lllll
.{ean
  \me, No
  d(r.naa