class_docstr: Triad census of a graph.
  
  This is a pretty simple class - basically it is a tuple, but it allows
  the user to refer to its individual items by the following triad names:
  
    - C{003} -- the empty graph
    - C{012} -- a graph with a single directed edge (C{A --> B, C})
    - C{102} -- a graph with a single mutual edge (C{A <-> B, C})
    - C{021D} -- the binary out-tree (C{A <-- B --> C})
    - C{021U} -- the binary in-tree (C{A --> B <-- C})
    - C{021C} -- the directed line (C{A --> B --> C})
    - C{111D} -- C{A <-> B <-- C}
    - C{111U} -- C{A <-> B --> C}
    - C{030T} -- C{A --> B <-- C, A --> C}
    - C{030C} -- C{A <-- B <-- C, A --> C}
    - C{201} -- C{A <-> B <-> C}
    - C{120D} -- C{A <-- B --> C, A <-> C}
    - C{120U} -- C{A --> B <-- C, A <-> C}
    - C{120C} -- C{A --> B --> C, A <-> C}
    - C{210C} -- C{A --> B <-> C, A <-> C}
    - C{300} -- the complete graph (C{A <-> B <-> C, A <-> C})
  
  Attribute and item accessors are provided. Due to the syntax of Python,
  attribute names are not allowed to start with a number, therefore the
  triad names must be prepended with a lowercase C{t} when accessing
  them as attributes. This is not necessary with the item accessor syntax.
  
  Examples:
  
    >>> from igraph import Graph
    >>> g=Graph.Erdos_Renyi(100, 0.2, directed=True)
    >>> tc=g.triad_census()
    >>> print(tc.t003)                    #doctest:+SKIP
    39864
    >>> print(tc["030C"])                 #doctest:+SKIP
    1206
class_docstr_tok: ["Triad","census","of","a","graph",".","This","is","a","pretty","simple","class","-","basically","it","is","a","tuple",",","but","it","allows","the","user","to","refer","to","its","individual","items","by","the","following","triad","names",":","-","C","{","003","}","--","the","empty","graph","-","C","{","012","}","--","a","graph","with","a","single","directed","edge","(","C","{","A","--",">","B",",","C","}",")","-","C","{","102","}","--","a","graph","with","a","single","mutual","edge","(","C","{","A","<","-",">","B",",","C","}",")","-","C","{","021D","}","--","the","binary","out-tree","(","C","{","A","<","--","B","--",">","C","}",")","-","C","{","021U","}","--","the","binary","in-tree","(","C","{","A","--",">","B","<","--","C","}",")","-","C","{","021C","}","--","the","directed","line","(","C","{","A","--",">","B","--",">","C","}",")","-","C","{","111D","}","--","C","{","A","<","-",">","B","<","--","C","}","-","C","{","111U","}","--","C","{","A","<","-",">","B","--",">","C","}","-","C","{","030T","}","--","C","{","A","--",">","B","<","--","C",",","A","--",">","C","}","-","C","{","030C","}","--","C","{","A","<","--","B","<","--","C",",","A","--",">","C","}","-","C","{","201","}","--","C","{","A","<","-",">","B","<","-",">","C","}","-","C","{","120D","}","--","C","{","A","<","--","B","--",">","C",",","A","<","-",">","C","}","-","C","{","120U","}","--","C","{","A","--",">","B","<","--","C",",","A","<","-",">","C","}","-","C","{","120C","}","--","C","{","A","--",">","B","--",">","C",",","A","<","-",">","C","}","-","C","{","210C","}","--","C","{","A","--",">","B","<","-",">","C",",","A","<","-",">","C","}","-","C","{","300","}","--","the","complete","graph","(","C","{","A","<","-",">","B","<","-",">","C",",","A","<","-",">","C","}",")","Attribute","and","item","accessors","are","provided",".","Due","to","the","syntax","of","Python",",","attribute","names","are","not","allowed","to","start","with","a","number",",","therefore","the","triad","names","must","be","prepended","with","a","lowercase","C","{","t","}","when","accessing","them","as","attributes",".","This","is","not","necessary","with","the","item","accessor","syntax",".","Examples",":",">",">",">","from","igraph","import","Graph",">",">",">","g=Graph.Erdos_Renyi","(","100",",","0.2",",","directed=True",")",">",">",">","tc=g.triad_census","(",")",">",">",">","print","(","tc.t003",")","#","doctest",":","+SKIP","39864",">",">",">","print","(","tc","[","``","030C","''","]",")","#","doctest",":","+SKIP","1206"]
code: def __getitem__(self, idx):
      if isinstance(idx, str):
          idx = idx.upper()
      return tuple.__getitem__(self, self._remap.get(idx, idx))
  
label_desc: Use image node_id 1 for calling the TriadCensus obj's underlying member method code with example usage: obj.__getitem__(idx) and returns: tuple