def __init__(self, name, element_id, xsi_type, labels, source, target,
                 layers=None):
        """
        Every edge has these attributes (in addition to the attributes
        inherited from the ``SaltElement`` class):

        Attributes
        ----------
        layers : list of int or None
            list of indices of the layers that the edge belongs to,
            or ``None`` if the edge doesn't belong to any layer
        source : int
            the index of the source node connected to the edge
        target : int
            the index of the target node connected to the edge
        """
        super(SaltEdge, self).__init__(name, element_id, xsi_type, labels, xml)
        self.layers = [] if layers is None else layers
        self.source = source
        self.target = target
def __init__ ( self , name , element_id , xsi_type , labels , source , target , layers = None ) : super ( SaltEdge , self ) . __init__ ( name , element_id , xsi_type , labels , xml ) self . layers = [ ] if layers is None else layers self . source = source self . target = target
Every edge has these attributes (in addition to the attributes
        inherited from the ``SaltElement`` class):

        Attributes
        ----------
        layers : list of int or None
            list of indices of the layers that the edge belongs to,
            or ``None`` if the edge doesn't belong to any layer
        source : int
            the index of the source node connected to the edge
        target : int
            the index of the target node connected to the edge