What does the dot represent when importing library

I am a new user of DGL and I came across several codes snippet in DGL tutorial which use different number of dots to import library. I am wondering what these dots represent respectively and why I am not able to execute these codes

from …softmax import edge_softmax
from …utils import Identity
from … import function as fn
from … import function as fn
from …base import ALL, is_all

. refers to the current directory.
.. refers to the parent directory.

I think you are actually browing the source code of DGL instead of tutorials, tutorials are outside of DGL python package where we use dgl.* to import modules.

This might help.

1 Like