code: def from_edgelist(self, edges, strict=True):
          
          # loop through each edge
          for edge in edges:
              # edge contains attributes
              if len(edge) == 3:
                  self.update(edge[1], edge[0], **edge[2])
              # edge just contains nodes
              elif len(edge) == 2:
                  self.update(edge[1], edge[0])
              # edge is broken
              elif strict:
                  raise ValueError('edge incorrect shape: {}'.format(str(edge)))
docs: Load transform data from an edge list into the current
          scene graph.
  
          Parameters
          -------------
          edgelist : (n,) tuples
              (node_a, node_b, {key: value})
          strict : bool
              If true, raise a ValueError when a
              malformed edge is passed in a tuple.