Functions can be called using two possible and equivalent approaches. If a dot notation is used, the object will be passed as the first parameter to the function. This approach is very similar to self parameter in Python.
function func(par1, par2, par3) { // Code } func(par1, par2, par3); par1.func(par2, par3);
g = graph(); v1 = generateVertex(g); v2 = g.generateVertex();
Built-in functions behave the same as the functions defined in the script code.